bfg-common 1.2.19 → 1.2.21
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/atoms/alert/Notification.vue +167 -167
- package/components/atoms/autocomplete/Autocomplete.vue +236 -236
- package/components/atoms/datepicker/Datepicker.vue +612 -612
- package/components/atoms/list/SelectList.vue +62 -62
- package/components/atoms/nav/NavBar.vue +116 -116
- package/components/atoms/nav/VerticalNavBar.vue +89 -89
- package/components/atoms/notificationBar/NotificationBar.vue +175 -175
- package/components/atoms/perPage/PerPage.vue +52 -52
- package/components/atoms/popup/SimplePopup.vue +90 -90
- package/components/atoms/step/VerticalStep.vue +104 -104
- package/components/atoms/switch/Switch.vue +107 -107
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +206 -206
- package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
- package/components/atoms/tabs/Tabs.vue +189 -189
- package/components/atoms/tooltip/Signpost.vue +224 -224
- package/components/common/BadBrowser.vue +58 -0
- package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
- package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
- package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
- package/components/common/browse/Browse.vue +182 -182
- package/components/common/browse/blocks/Title.vue +66 -66
- package/components/common/diagramMain/Diagram.vue +186 -186
- package/components/common/diagramMain/DiagramMain.vue +986 -986
- package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
- package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
- package/components/common/diagramMain/network/Contents.vue +238 -238
- package/components/common/feedback/Buttons.vue +232 -232
- package/components/common/feedback/Message.vue +468 -468
- package/components/common/feedback/VisitPortal.vue +54 -54
- package/components/common/help/navbar/left/Left.vue +159 -159
- package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
- package/components/common/modals/Rename.vue +165 -165
- package/components/common/perPage/PerPage.vue +51 -51
- package/components/common/recursionTree/RecursionTree.vue +201 -201
- package/components/common/vm/actions/add/config/capabilities.ts +338 -338
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/VirtualHardware.vue +657 -657
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +109 -109
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +383 -383
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +445 -445
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +288 -288
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/VideoCard.vue +177 -177
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/Order.vue +197 -197
- package/components/common/vm/actions/add/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +181 -181
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +51 -51
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +253 -253
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +55 -55
- package/components/common/vm/actions/add/select/storage/config/config.ts +154 -154
- package/components/common/vm/actions/clone/Clone.vue +544 -544
- package/components/common/vm/actions/clone/select/options/Options.vue +65 -65
- package/components/common/vm/actions/clone/utils.ts +43 -43
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
- package/composables/useLocal.ts +38 -38
- package/minify.js +146 -146
- package/models/store/interfaces.ts +37 -37
- package/models/store/storage/interfaces.ts +32 -32
- package/models/store/types.ts +32 -32
- package/modules/fixContentBuild/utils/methods.ts +114 -114
- package/package.json +1 -1
- 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/utils/contentBuild.ts +34 -34
package/minify.js
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
const fs = require('fs')
|
|
2
|
-
const terser = require('terser')
|
|
3
|
-
|
|
4
|
-
// Файлы которые нужно минимизировать
|
|
5
|
-
const filesByOrder = [
|
|
6
|
-
'public/spice-console/lib/decoder/jmuxer.js',
|
|
7
|
-
'public/spice-console/lib/decoder/dixie.js',
|
|
8
|
-
'public/spice-console/lib/jquery-2.0.3.js',
|
|
9
|
-
'public/spice-console/lib/utils.js',
|
|
10
|
-
'public/spice-console/lib/modernizr.js',
|
|
11
|
-
'public/spice-console/lib/jquery-mousewheel.js',
|
|
12
|
-
'public/spice-console/lib/jquery-visibility.min.js',
|
|
13
|
-
'public/spice-console/lib/lodash.4.0.0.min.js',
|
|
14
|
-
'public/spice-console/lib/jgestures.min.js',
|
|
15
|
-
'public/spice-console/lib/pixastic.js',
|
|
16
|
-
'public/spice-console/lib/base64.js',
|
|
17
|
-
'public/spice-console/lib/biginteger.js',
|
|
18
|
-
'public/spice-console/lib/virtualjoystick.js',
|
|
19
|
-
'public/spice-console/lib/prettyprint.js',
|
|
20
|
-
'public/spice-console/lib/jsbn.js',
|
|
21
|
-
'public/spice-console/lib/jsbn2.js',
|
|
22
|
-
'public/spice-console/lib/prng4.js',
|
|
23
|
-
'public/spice-console/lib/rng.js',
|
|
24
|
-
'public/spice-console/lib/sha1.js',
|
|
25
|
-
'public/spice-console/lib/encrypt.js',
|
|
26
|
-
'public/spice-console/swcanvas/swcanvas.js',
|
|
27
|
-
'public/spice-console/lib/bowser.js',
|
|
28
|
-
'public/spice-console/lib/flipper.js',
|
|
29
|
-
'public/spice-console/lib/CollisionDetector.js',
|
|
30
|
-
'public/spice-console/lib/GlobalPool.js',
|
|
31
|
-
'public/spice-console/lib/GenericObjectPool.js',
|
|
32
|
-
'public/spice-console/lib/AsyncConsumer.js',
|
|
33
|
-
'public/spice-console/lib/AsyncWorker.js',
|
|
34
|
-
'public/spice-console/lib/PacketWorkerIdentifier.js',
|
|
35
|
-
'public/spice-console/spiceobjects/spiceobjects.js',
|
|
36
|
-
'public/spice-console/spiceobjects/generated/protocol.js',
|
|
37
|
-
'public/spice-console/lib/graphicdebug.js',
|
|
38
|
-
'public/spice-console/lib/images/lz.js',
|
|
39
|
-
'public/spice-console/lib/images/bitmap.js',
|
|
40
|
-
'public/spice-console/lib/images/png.js',
|
|
41
|
-
'public/spice-console/lib/runqueue.js',
|
|
42
|
-
'public/spice-console/lib/graphic.js',
|
|
43
|
-
'public/spice-console/lib/queue.js',
|
|
44
|
-
'public/spice-console/lib/ImageUncompressor.js',
|
|
45
|
-
'public/spice-console/lib/SyncAsyncHandler.js',
|
|
46
|
-
'public/spice-console/lib/IntegrationBenchmark.js',
|
|
47
|
-
'public/spice-console/lib/stuckkeyshandler.js',
|
|
48
|
-
'public/spice-console/lib/timelapsedetector.js',
|
|
49
|
-
'public/spice-console/lib/displayRouter.js',
|
|
50
|
-
'public/spice-console/lib/rasterEngine.js',
|
|
51
|
-
'public/spice-console/lib/DataLogger.js',
|
|
52
|
-
'public/spice-console/network/socket.js',
|
|
53
|
-
'public/spice-console/network/clusternodechooser.js',
|
|
54
|
-
'public/spice-console/network/socketqueue.js',
|
|
55
|
-
'public/spice-console/network/packetcontroller.js',
|
|
56
|
-
'public/spice-console/network/packetextractor.js',
|
|
57
|
-
'public/spice-console/network/packetreassembler.js',
|
|
58
|
-
'public/spice-console/network/reassemblerfactory.js',
|
|
59
|
-
'public/spice-console/network/sizedefiner.js',
|
|
60
|
-
'public/spice-console/network/packetlinkfactory.js',
|
|
61
|
-
'public/spice-console/network/spicechannel.js',
|
|
62
|
-
'public/spice-console/network/busconnection.js',
|
|
63
|
-
'public/spice-console/network/websocketwrapper.js',
|
|
64
|
-
'public/spice-console/network/connectioncontrol.js',
|
|
65
|
-
'public/spice-console/application/checkActivity.js',
|
|
66
|
-
'public/spice-console/application/agent.js',
|
|
67
|
-
'public/spice-console/application/codec.js',
|
|
68
|
-
'public/spice-console/application/clipboard.js',
|
|
69
|
-
'public/spice-console/application/clipboard/clipboarddataparser.js',
|
|
70
|
-
'public/spice-console/application/clipboard/local/localClipboard.js',
|
|
71
|
-
'public/spice-console/application/spiceconnection.js',
|
|
72
|
-
'public/spice-console/application/clientgui.js',
|
|
73
|
-
'public/spice-console/application/packetprocess.js',
|
|
74
|
-
'public/spice-console/application/packetfilter.js',
|
|
75
|
-
'public/spice-console/application/packetfactory.js',
|
|
76
|
-
'public/spice-console/application/application.js',
|
|
77
|
-
'public/spice-console/application/virtualmouse.js',
|
|
78
|
-
'public/spice-console/application/imagecache.js',
|
|
79
|
-
'public/spice-console/application/rasteroperation.js',
|
|
80
|
-
'public/spice-console/application/stream.js',
|
|
81
|
-
'public/spice-console/application/inputmanager.js',
|
|
82
|
-
'public/spice-console/process/busprocess.js',
|
|
83
|
-
'public/spice-console/process/displayprocess.js',
|
|
84
|
-
'public/spice-console/process/displaypreprocess.js',
|
|
85
|
-
'public/spice-console/process/inputprocess.js',
|
|
86
|
-
'public/spice-console/process/cursorprocess.js',
|
|
87
|
-
'public/spice-console/process/playbackprocess.js',
|
|
88
|
-
'public/spice-console/process/mainprocess.js',
|
|
89
|
-
'public/spice-console/keymaps/keyevent.js',
|
|
90
|
-
'public/spice-console/keymaps/keymapes.js',
|
|
91
|
-
'public/spice-console/keymaps/scanCodeObjProvider.js',
|
|
92
|
-
'public/spice-console/keymaps/scanCodeObjModifier.js',
|
|
93
|
-
'public/spice-console/keymaps/keymapesObj.js',
|
|
94
|
-
'public/spice-console/keymaps/keymapus.js',
|
|
95
|
-
'public/spice-console/keymaps/keymap.js',
|
|
96
|
-
'public/spice-console/run.js',
|
|
97
|
-
]
|
|
98
|
-
|
|
99
|
-
// Папка и файл в которую вы хотите сохранить минифицированные файлы
|
|
100
|
-
const outputFolder = 'public/spice-console-minify'
|
|
101
|
-
const outputFile = `${outputFolder}/run.min.js`
|
|
102
|
-
|
|
103
|
-
// Создайте папку назначения, если она не существует
|
|
104
|
-
if (!fs.existsSync(outputFolder)) {
|
|
105
|
-
fs.mkdirSync(outputFolder, { recursive: true })
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
let index = 0
|
|
109
|
-
let runMinJsContent = ''
|
|
110
|
-
filesByOrder.forEach((filePath) => {
|
|
111
|
-
// Минифицируем
|
|
112
|
-
const fileContent = fs.readFileSync(filePath, 'utf8')
|
|
113
|
-
terser.minify(fileContent).then((minified) => {
|
|
114
|
-
if (minified.error) {
|
|
115
|
-
console.error(
|
|
116
|
-
`Ошибка при минификации файла ${filePath}: ${minified.error.message}`
|
|
117
|
-
)
|
|
118
|
-
} else {
|
|
119
|
-
runMinJsContent += minified.code.replaceAll(
|
|
120
|
-
'spice-console/application/WorkerProcess.js',
|
|
121
|
-
'spice-console-minify/WorkerProcess.min.js'
|
|
122
|
-
)
|
|
123
|
-
index++
|
|
124
|
-
|
|
125
|
-
// Если последний файл то все помещаем в run.min.js
|
|
126
|
-
if (filesByOrder.length === index)
|
|
127
|
-
fs.writeFileSync(outputFile, runMinJsContent)
|
|
128
|
-
}
|
|
129
|
-
})
|
|
130
|
-
})
|
|
131
|
-
|
|
132
|
-
// Обрабатываем Worker
|
|
133
|
-
const workerJs = 'public/spice-console/application/WorkerProcess.js'
|
|
134
|
-
const outputWorkerFile = `${outputFolder}/WorkerProcess.min.js`
|
|
135
|
-
|
|
136
|
-
// Минифицируем
|
|
137
|
-
const fileContent = fs.readFileSync(workerJs, 'utf8')
|
|
138
|
-
terser.minify(fileContent).then((minified) => {
|
|
139
|
-
if (minified.error) {
|
|
140
|
-
console.error(
|
|
141
|
-
`Ошибка при минификации файла ${workerJs}: ${minified.error.message}`
|
|
142
|
-
)
|
|
143
|
-
} else {
|
|
144
|
-
fs.writeFileSync(outputWorkerFile, minified.code)
|
|
145
|
-
}
|
|
146
|
-
})
|
|
1
|
+
const fs = require('fs')
|
|
2
|
+
const terser = require('terser')
|
|
3
|
+
|
|
4
|
+
// Файлы которые нужно минимизировать
|
|
5
|
+
const filesByOrder = [
|
|
6
|
+
'public/spice-console/lib/decoder/jmuxer.js',
|
|
7
|
+
'public/spice-console/lib/decoder/dixie.js',
|
|
8
|
+
'public/spice-console/lib/jquery-2.0.3.js',
|
|
9
|
+
'public/spice-console/lib/utils.js',
|
|
10
|
+
'public/spice-console/lib/modernizr.js',
|
|
11
|
+
'public/spice-console/lib/jquery-mousewheel.js',
|
|
12
|
+
'public/spice-console/lib/jquery-visibility.min.js',
|
|
13
|
+
'public/spice-console/lib/lodash.4.0.0.min.js',
|
|
14
|
+
'public/spice-console/lib/jgestures.min.js',
|
|
15
|
+
'public/spice-console/lib/pixastic.js',
|
|
16
|
+
'public/spice-console/lib/base64.js',
|
|
17
|
+
'public/spice-console/lib/biginteger.js',
|
|
18
|
+
'public/spice-console/lib/virtualjoystick.js',
|
|
19
|
+
'public/spice-console/lib/prettyprint.js',
|
|
20
|
+
'public/spice-console/lib/jsbn.js',
|
|
21
|
+
'public/spice-console/lib/jsbn2.js',
|
|
22
|
+
'public/spice-console/lib/prng4.js',
|
|
23
|
+
'public/spice-console/lib/rng.js',
|
|
24
|
+
'public/spice-console/lib/sha1.js',
|
|
25
|
+
'public/spice-console/lib/encrypt.js',
|
|
26
|
+
'public/spice-console/swcanvas/swcanvas.js',
|
|
27
|
+
'public/spice-console/lib/bowser.js',
|
|
28
|
+
'public/spice-console/lib/flipper.js',
|
|
29
|
+
'public/spice-console/lib/CollisionDetector.js',
|
|
30
|
+
'public/spice-console/lib/GlobalPool.js',
|
|
31
|
+
'public/spice-console/lib/GenericObjectPool.js',
|
|
32
|
+
'public/spice-console/lib/AsyncConsumer.js',
|
|
33
|
+
'public/spice-console/lib/AsyncWorker.js',
|
|
34
|
+
'public/spice-console/lib/PacketWorkerIdentifier.js',
|
|
35
|
+
'public/spice-console/spiceobjects/spiceobjects.js',
|
|
36
|
+
'public/spice-console/spiceobjects/generated/protocol.js',
|
|
37
|
+
'public/spice-console/lib/graphicdebug.js',
|
|
38
|
+
'public/spice-console/lib/images/lz.js',
|
|
39
|
+
'public/spice-console/lib/images/bitmap.js',
|
|
40
|
+
'public/spice-console/lib/images/png.js',
|
|
41
|
+
'public/spice-console/lib/runqueue.js',
|
|
42
|
+
'public/spice-console/lib/graphic.js',
|
|
43
|
+
'public/spice-console/lib/queue.js',
|
|
44
|
+
'public/spice-console/lib/ImageUncompressor.js',
|
|
45
|
+
'public/spice-console/lib/SyncAsyncHandler.js',
|
|
46
|
+
'public/spice-console/lib/IntegrationBenchmark.js',
|
|
47
|
+
'public/spice-console/lib/stuckkeyshandler.js',
|
|
48
|
+
'public/spice-console/lib/timelapsedetector.js',
|
|
49
|
+
'public/spice-console/lib/displayRouter.js',
|
|
50
|
+
'public/spice-console/lib/rasterEngine.js',
|
|
51
|
+
'public/spice-console/lib/DataLogger.js',
|
|
52
|
+
'public/spice-console/network/socket.js',
|
|
53
|
+
'public/spice-console/network/clusternodechooser.js',
|
|
54
|
+
'public/spice-console/network/socketqueue.js',
|
|
55
|
+
'public/spice-console/network/packetcontroller.js',
|
|
56
|
+
'public/spice-console/network/packetextractor.js',
|
|
57
|
+
'public/spice-console/network/packetreassembler.js',
|
|
58
|
+
'public/spice-console/network/reassemblerfactory.js',
|
|
59
|
+
'public/spice-console/network/sizedefiner.js',
|
|
60
|
+
'public/spice-console/network/packetlinkfactory.js',
|
|
61
|
+
'public/spice-console/network/spicechannel.js',
|
|
62
|
+
'public/spice-console/network/busconnection.js',
|
|
63
|
+
'public/spice-console/network/websocketwrapper.js',
|
|
64
|
+
'public/spice-console/network/connectioncontrol.js',
|
|
65
|
+
'public/spice-console/application/checkActivity.js',
|
|
66
|
+
'public/spice-console/application/agent.js',
|
|
67
|
+
'public/spice-console/application/codec.js',
|
|
68
|
+
'public/spice-console/application/clipboard.js',
|
|
69
|
+
'public/spice-console/application/clipboard/clipboarddataparser.js',
|
|
70
|
+
'public/spice-console/application/clipboard/local/localClipboard.js',
|
|
71
|
+
'public/spice-console/application/spiceconnection.js',
|
|
72
|
+
'public/spice-console/application/clientgui.js',
|
|
73
|
+
'public/spice-console/application/packetprocess.js',
|
|
74
|
+
'public/spice-console/application/packetfilter.js',
|
|
75
|
+
'public/spice-console/application/packetfactory.js',
|
|
76
|
+
'public/spice-console/application/application.js',
|
|
77
|
+
'public/spice-console/application/virtualmouse.js',
|
|
78
|
+
'public/spice-console/application/imagecache.js',
|
|
79
|
+
'public/spice-console/application/rasteroperation.js',
|
|
80
|
+
'public/spice-console/application/stream.js',
|
|
81
|
+
'public/spice-console/application/inputmanager.js',
|
|
82
|
+
'public/spice-console/process/busprocess.js',
|
|
83
|
+
'public/spice-console/process/displayprocess.js',
|
|
84
|
+
'public/spice-console/process/displaypreprocess.js',
|
|
85
|
+
'public/spice-console/process/inputprocess.js',
|
|
86
|
+
'public/spice-console/process/cursorprocess.js',
|
|
87
|
+
'public/spice-console/process/playbackprocess.js',
|
|
88
|
+
'public/spice-console/process/mainprocess.js',
|
|
89
|
+
'public/spice-console/keymaps/keyevent.js',
|
|
90
|
+
'public/spice-console/keymaps/keymapes.js',
|
|
91
|
+
'public/spice-console/keymaps/scanCodeObjProvider.js',
|
|
92
|
+
'public/spice-console/keymaps/scanCodeObjModifier.js',
|
|
93
|
+
'public/spice-console/keymaps/keymapesObj.js',
|
|
94
|
+
'public/spice-console/keymaps/keymapus.js',
|
|
95
|
+
'public/spice-console/keymaps/keymap.js',
|
|
96
|
+
'public/spice-console/run.js',
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
// Папка и файл в которую вы хотите сохранить минифицированные файлы
|
|
100
|
+
const outputFolder = 'public/spice-console-minify'
|
|
101
|
+
const outputFile = `${outputFolder}/run.min.js`
|
|
102
|
+
|
|
103
|
+
// Создайте папку назначения, если она не существует
|
|
104
|
+
if (!fs.existsSync(outputFolder)) {
|
|
105
|
+
fs.mkdirSync(outputFolder, { recursive: true })
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
let index = 0
|
|
109
|
+
let runMinJsContent = ''
|
|
110
|
+
filesByOrder.forEach((filePath) => {
|
|
111
|
+
// Минифицируем
|
|
112
|
+
const fileContent = fs.readFileSync(filePath, 'utf8')
|
|
113
|
+
terser.minify(fileContent).then((minified) => {
|
|
114
|
+
if (minified.error) {
|
|
115
|
+
console.error(
|
|
116
|
+
`Ошибка при минификации файла ${filePath}: ${minified.error.message}`
|
|
117
|
+
)
|
|
118
|
+
} else {
|
|
119
|
+
runMinJsContent += minified.code.replaceAll(
|
|
120
|
+
'spice-console/application/WorkerProcess.js',
|
|
121
|
+
'spice-console-minify/WorkerProcess.min.js'
|
|
122
|
+
)
|
|
123
|
+
index++
|
|
124
|
+
|
|
125
|
+
// Если последний файл то все помещаем в run.min.js
|
|
126
|
+
if (filesByOrder.length === index)
|
|
127
|
+
fs.writeFileSync(outputFile, runMinJsContent)
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
// Обрабатываем Worker
|
|
133
|
+
const workerJs = 'public/spice-console/application/WorkerProcess.js'
|
|
134
|
+
const outputWorkerFile = `${outputFolder}/WorkerProcess.min.js`
|
|
135
|
+
|
|
136
|
+
// Минифицируем
|
|
137
|
+
const fileContent = fs.readFileSync(workerJs, 'utf8')
|
|
138
|
+
terser.minify(fileContent).then((minified) => {
|
|
139
|
+
if (minified.error) {
|
|
140
|
+
console.error(
|
|
141
|
+
`Ошибка при минификации файла ${workerJs}: ${minified.error.message}`
|
|
142
|
+
)
|
|
143
|
+
} else {
|
|
144
|
+
fs.writeFileSync(outputWorkerFile, minified.code)
|
|
145
|
+
}
|
|
146
|
+
})
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import type { UI_I_Pagination } from '~/models/interfaces'
|
|
2
|
-
import type { UI_T_Schema } from '~/models/types'
|
|
3
|
-
|
|
4
|
-
export interface UI_I_ErrorValidationField<T = string> {
|
|
5
|
-
error_message: string
|
|
6
|
-
field: T
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface API_UI_I_Error {
|
|
10
|
-
data: {
|
|
11
|
-
error_code: number
|
|
12
|
-
error_message: any
|
|
13
|
-
name?: any
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface API_UI_I_Node {
|
|
18
|
-
id: string
|
|
19
|
-
name: string
|
|
20
|
-
state: number
|
|
21
|
-
net_bridge?: string
|
|
22
|
-
console_type?: string
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface UI_I_SchemaTablePayload {
|
|
26
|
-
schema: UI_T_Schema
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface UI_I_TablePayload extends UI_I_SchemaTablePayload {
|
|
30
|
-
pagination: UI_I_Pagination
|
|
31
|
-
type: any
|
|
32
|
-
sortBy: string | null
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface UI_I_CommitOptions {
|
|
36
|
-
root: boolean
|
|
37
|
-
}
|
|
1
|
+
import type { UI_I_Pagination } from '~/models/interfaces'
|
|
2
|
+
import type { UI_T_Schema } from '~/models/types'
|
|
3
|
+
|
|
4
|
+
export interface UI_I_ErrorValidationField<T = string> {
|
|
5
|
+
error_message: string
|
|
6
|
+
field: T
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface API_UI_I_Error {
|
|
10
|
+
data: {
|
|
11
|
+
error_code: number
|
|
12
|
+
error_message: any
|
|
13
|
+
name?: any
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface API_UI_I_Node {
|
|
18
|
+
id: string
|
|
19
|
+
name: string
|
|
20
|
+
state: number
|
|
21
|
+
net_bridge?: string
|
|
22
|
+
console_type?: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface UI_I_SchemaTablePayload {
|
|
26
|
+
schema: UI_T_Schema
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface UI_I_TablePayload extends UI_I_SchemaTablePayload {
|
|
30
|
+
pagination: UI_I_Pagination
|
|
31
|
+
type: any
|
|
32
|
+
sortBy: string | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface UI_I_CommitOptions {
|
|
36
|
+
root: boolean
|
|
37
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { API_UI_I_Node } from '~/models/store/interfaces'
|
|
2
|
-
|
|
3
|
-
export interface API_UI_I_DatastoreTableItemCapacity {
|
|
4
|
-
capacity_mb: number
|
|
5
|
-
provisioned_mb: number
|
|
6
|
-
free_mb: number
|
|
7
|
-
used_mb: number
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface API_UI_I_DatastoreTableItem extends API_UI_I_Node {
|
|
11
|
-
pool_name: string
|
|
12
|
-
type_code: number
|
|
13
|
-
type_text: string
|
|
14
|
-
drive_type: string
|
|
15
|
-
capacity: API_UI_I_DatastoreTableItemCapacity
|
|
16
|
-
thin_provisioning: boolean
|
|
17
|
-
access_mode: string
|
|
18
|
-
hardware_acceleration: string
|
|
19
|
-
device: string
|
|
20
|
-
storage_io_control: boolean
|
|
21
|
-
storage_compatibility: string
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface UI_I_DatastoreTableItem extends API_UI_I_DatastoreTableItem {}
|
|
25
|
-
|
|
26
|
-
export interface UI_I_FolderOrFileTreePayload {
|
|
27
|
-
type: string
|
|
28
|
-
id: string
|
|
29
|
-
path: string
|
|
30
|
-
merge: boolean
|
|
31
|
-
show: boolean
|
|
32
|
-
}
|
|
1
|
+
import { API_UI_I_Node } from '~/models/store/interfaces'
|
|
2
|
+
|
|
3
|
+
export interface API_UI_I_DatastoreTableItemCapacity {
|
|
4
|
+
capacity_mb: number
|
|
5
|
+
provisioned_mb: number
|
|
6
|
+
free_mb: number
|
|
7
|
+
used_mb: number
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface API_UI_I_DatastoreTableItem extends API_UI_I_Node {
|
|
11
|
+
pool_name: string
|
|
12
|
+
type_code: number
|
|
13
|
+
type_text: string
|
|
14
|
+
drive_type: string
|
|
15
|
+
capacity: API_UI_I_DatastoreTableItemCapacity
|
|
16
|
+
thin_provisioning: boolean
|
|
17
|
+
access_mode: string
|
|
18
|
+
hardware_acceleration: string
|
|
19
|
+
device: string
|
|
20
|
+
storage_io_control: boolean
|
|
21
|
+
storage_compatibility: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface UI_I_DatastoreTableItem extends API_UI_I_DatastoreTableItem {}
|
|
25
|
+
|
|
26
|
+
export interface UI_I_FolderOrFileTreePayload {
|
|
27
|
+
type: string
|
|
28
|
+
id: string
|
|
29
|
+
path: string
|
|
30
|
+
merge: boolean
|
|
31
|
+
show: boolean
|
|
32
|
+
}
|
package/models/store/types.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export type API_UI_I_HostState =
|
|
2
|
-
| 0 // ICON: host-error TEXT: Unknown
|
|
3
|
-
| 1 // ICON: host TEXT: Connected
|
|
4
|
-
| 2 // ICON: host-warning TEXT: Warning
|
|
5
|
-
| 3 // ICON: host-error TEXT: Error
|
|
6
|
-
| 4 // ICON: host-maintenance TEXT: Maintenance
|
|
7
|
-
| 5 // ICON: host-not-responding TEXT: Not Responding
|
|
8
|
-
| 6 // ICON: host-disconnected TEXT: Disconnected
|
|
9
|
-
export type UI_I_HostState = API_UI_I_HostState
|
|
10
|
-
|
|
11
|
-
export type API_UI_T_VmState =
|
|
12
|
-
| 0 // ICON: vm-error TEXT: Unknown
|
|
13
|
-
| 1 // ICON: vm TEXT: Power Off
|
|
14
|
-
| 2 // ICON: vm-on TEXT: Powered On
|
|
15
|
-
| 3 // ICON: vm-suspended TEXT: Suspended
|
|
16
|
-
| 4 // ICON: vm-error TEXT: Error
|
|
17
|
-
| 5 // ICON: vm-warning TEXT: Warning
|
|
18
|
-
| 6 // ICON: vm-warning TEXT: Pending
|
|
19
|
-
| 7 // ICON: vm-suspended TEXT: Paused
|
|
20
|
-
| 8 // ICON: vm-warning TEXT: Blocked
|
|
21
|
-
| 9 // ICON: vm-warning TEXT: Shutting Down
|
|
22
|
-
| 10 // ICON: vm-warning TEXT: Shutting Off
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export type API_UI_T_DatastoreState =
|
|
26
|
-
| 0 // ICON: datastore-error TEXT: Unknown
|
|
27
|
-
| 1 // ICON: datastore TEXT: Connected
|
|
28
|
-
| 2 // ICON: datastore-warning TEXT: Warning
|
|
29
|
-
| 3 // ICON: datastore-error TEXT: Error
|
|
30
|
-
| 4 // ICON: datastore-maintenance TEXT: Maintenance
|
|
31
|
-
| 5 // ICON: datastore-inaccessible TEXT: Inaccessible
|
|
32
|
-
| 6 // ICON: datastore-disconnected TEXT: Disconnected
|
|
1
|
+
export type API_UI_I_HostState =
|
|
2
|
+
| 0 // ICON: host-error TEXT: Unknown
|
|
3
|
+
| 1 // ICON: host TEXT: Connected
|
|
4
|
+
| 2 // ICON: host-warning TEXT: Warning
|
|
5
|
+
| 3 // ICON: host-error TEXT: Error
|
|
6
|
+
| 4 // ICON: host-maintenance TEXT: Maintenance
|
|
7
|
+
| 5 // ICON: host-not-responding TEXT: Not Responding
|
|
8
|
+
| 6 // ICON: host-disconnected TEXT: Disconnected
|
|
9
|
+
export type UI_I_HostState = API_UI_I_HostState
|
|
10
|
+
|
|
11
|
+
export type API_UI_T_VmState =
|
|
12
|
+
| 0 // ICON: vm-error TEXT: Unknown
|
|
13
|
+
| 1 // ICON: vm TEXT: Power Off
|
|
14
|
+
| 2 // ICON: vm-on TEXT: Powered On
|
|
15
|
+
| 3 // ICON: vm-suspended TEXT: Suspended
|
|
16
|
+
| 4 // ICON: vm-error TEXT: Error
|
|
17
|
+
| 5 // ICON: vm-warning TEXT: Warning
|
|
18
|
+
| 6 // ICON: vm-warning TEXT: Pending
|
|
19
|
+
| 7 // ICON: vm-suspended TEXT: Paused
|
|
20
|
+
| 8 // ICON: vm-warning TEXT: Blocked
|
|
21
|
+
| 9 // ICON: vm-warning TEXT: Shutting Down
|
|
22
|
+
| 10 // ICON: vm-warning TEXT: Shutting Off
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export type API_UI_T_DatastoreState =
|
|
26
|
+
| 0 // ICON: datastore-error TEXT: Unknown
|
|
27
|
+
| 1 // ICON: datastore TEXT: Connected
|
|
28
|
+
| 2 // ICON: datastore-warning TEXT: Warning
|
|
29
|
+
| 3 // ICON: datastore-error TEXT: Error
|
|
30
|
+
| 4 // ICON: datastore-maintenance TEXT: Maintenance
|
|
31
|
+
| 5 // ICON: datastore-inaccessible TEXT: Inaccessible
|
|
32
|
+
| 6 // ICON: datastore-disconnected TEXT: Disconnected
|