bfg-common 1.3.487 → 1.3.489
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.
|
@@ -2,12 +2,20 @@
|
|
|
2
2
|
* {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
|
|
6
|
+
html:not(.is-new-view) {
|
|
7
|
+
&.dark-theme body {
|
|
8
|
+
*:not(svg, path, rect, line, defs, g, clipPath) {
|
|
9
|
+
color: #e9ecef;
|
|
10
|
+
}
|
|
11
|
+
.main-container {
|
|
12
|
+
background: #1b2a32;
|
|
13
|
+
}
|
|
8
14
|
}
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
|
|
16
|
+
input,
|
|
17
|
+
textarea {
|
|
18
|
+
font-family: sans-serif!important;
|
|
11
19
|
}
|
|
12
20
|
}
|
|
13
21
|
|
|
@@ -1259,47 +1259,32 @@
|
|
|
1259
1259
|
</template>
|
|
1260
1260
|
<template v-else-if="props.name === 'backup'">
|
|
1261
1261
|
<svg
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1262
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1263
|
+
:width="props.width"
|
|
1264
|
+
:height="props.height"
|
|
1265
|
+
viewBox="0 0 20 20"
|
|
1266
|
+
fill="none"
|
|
1267
1267
|
>
|
|
1268
|
-
<
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
stroke-linejoin="round"
|
|
1289
|
-
/>
|
|
1290
|
-
<path
|
|
1291
|
-
d="M9 9.50732V11.7509H11.25"
|
|
1292
|
-
stroke="currentColor"
|
|
1293
|
-
stroke-width="1.2"
|
|
1294
|
-
stroke-linecap="round"
|
|
1295
|
-
stroke-linejoin="round"
|
|
1296
|
-
/>
|
|
1297
|
-
</g>
|
|
1298
|
-
<defs>
|
|
1299
|
-
<clipPath id="clip0_927_13361">
|
|
1300
|
-
<rect width="24" height="24" fill="white" />
|
|
1301
|
-
</clipPath>
|
|
1302
|
-
</defs>
|
|
1268
|
+
<path
|
|
1269
|
+
d="M12.9275 17.4058C13.5005 17.9789 14.2922 18.3333 15.1667 18.3333C16.9156 18.3333 18.3333 16.9156 18.3333 15.1667C18.3333 13.4178 16.9156 12 15.1667 12C13.7389 12 12.8734 12.9516 12 13.9352M12.8063 17.2778C13.0736 17.5764 13.3967 17.824 13.7593 18.0042"
|
|
1270
|
+
stroke="currentColor"
|
|
1271
|
+
stroke-width="1.5"
|
|
1272
|
+
stroke-linecap="round"
|
|
1273
|
+
stroke-linejoin="round"
|
|
1274
|
+
/>
|
|
1275
|
+
<path
|
|
1276
|
+
d="M12 12.5283V13.9357H13.4074"
|
|
1277
|
+
stroke="currentColor"
|
|
1278
|
+
stroke-width="1.5"
|
|
1279
|
+
stroke-linecap="round"
|
|
1280
|
+
stroke-linejoin="round"
|
|
1281
|
+
/>
|
|
1282
|
+
<path
|
|
1283
|
+
d="M16.7857 3.45271C16.7857 4.43893 13.5877 5.23842 9.64286 5.23842C5.69797 5.23842 2.5 4.43893 2.5 3.45271M16.7857 3.45271C16.7857 2.46648 13.5877 1.66699 9.64286 1.66699C5.69797 1.66699 2.5 2.46648 2.5 3.45271M16.7857 3.45271V9.00033M2.5 3.45271V16.5479M2.5 16.5479C2.5 17.5049 5.51097 18.286 9.29367 18.3316M2.5 16.5479C2.5 17.5342 5.69797 18.3337 9.64286 18.3337M2.5 12.1906C2.5 13.028 4.80575 13.7308 7.91667 13.9238M2.5 12.1906C2.5 13.0718 5.05287 13.8037 8.41043 13.9497M2.5 12.1906C2.5 13.0943 5.18514 13.8413 8.66964 13.96M16.1836 8.5404C16.5708 8.32049 16.7857 8.07735 16.7857 7.82166C16.7857 8.80788 13.5877 9.60749 9.64286 9.60749C5.69797 9.60749 2.5 8.80788 2.5 7.82166C2.5 8.74309 5.29157 9.50152 8.87571 9.5972"
|
|
1284
|
+
stroke="currentColor"
|
|
1285
|
+
stroke-width="1.5"
|
|
1286
|
+
stroke-linecap="round"
|
|
1287
|
+
/>
|
|
1303
1288
|
</svg>
|
|
1304
1289
|
</template>
|
|
1305
1290
|
<template v-else-if="props.name === 'network'">
|
package/package.json
CHANGED
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
UI_E_RecentTaskStatus,
|
|
3
|
-
UI_E_IconNameByRecentTaskStatus,
|
|
4
|
-
} from '~/lib/models/store/tasks/enums'
|
|
5
|
-
import type {
|
|
6
|
-
API_UI_I_RecentTask,
|
|
7
|
-
UI_I_RecentTask,
|
|
8
|
-
} from '~/lib/models/store/tasks/interfaces'
|
|
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
|
-
|
|
1
|
+
import {
|
|
2
|
+
UI_E_RecentTaskStatus,
|
|
3
|
+
UI_E_IconNameByRecentTaskStatus,
|
|
4
|
+
} from '~/lib/models/store/tasks/enums'
|
|
5
|
+
import type {
|
|
6
|
+
API_UI_I_RecentTask,
|
|
7
|
+
UI_I_RecentTask,
|
|
8
|
+
} from '~/lib/models/store/tasks/interfaces'
|
|
9
|
+
import { base64 } from '~/lib/utils/base64'
|
|
10
|
+
|
|
11
|
+
export const recentTasks = (
|
|
12
|
+
data: API_UI_I_RecentTask<string>
|
|
13
|
+
): UI_I_RecentTask<string> => {
|
|
14
|
+
const items =
|
|
15
|
+
data.items
|
|
16
|
+
?.sort((a, b) => {
|
|
17
|
+
return b.start_time - a.start_time
|
|
18
|
+
})
|
|
19
|
+
.map((task) => {
|
|
20
|
+
return {
|
|
21
|
+
args: base64.decode(task.args),
|
|
22
|
+
completion: task.completion + '' || '-',
|
|
23
|
+
queuedFor: task.creation_time - task.start_time,
|
|
24
|
+
execution: Math.abs(task.start_time - task.completion),
|
|
25
|
+
details: task.details,
|
|
26
|
+
error: task.error,
|
|
27
|
+
initiator: task.initiator,
|
|
28
|
+
server: task.server,
|
|
29
|
+
startTime: task.start_time + '' || '-',
|
|
30
|
+
statusIcon: UI_E_IconNameByRecentTaskStatus[task.status],
|
|
31
|
+
statusText: task.error || UI_E_RecentTaskStatus[task.status],
|
|
32
|
+
status: task.status,
|
|
33
|
+
target: task.target,
|
|
34
|
+
targetType: task.target_type,
|
|
35
|
+
taskName: task.task_name,
|
|
36
|
+
id: task.id,
|
|
37
|
+
zone: task.zone,
|
|
38
|
+
extra: task.extra,
|
|
39
|
+
}
|
|
40
|
+
}) || []
|
|
41
|
+
return {
|
|
42
|
+
items,
|
|
43
|
+
last: data.last,
|
|
44
|
+
}
|
|
45
|
+
}
|