@dovetail-v2/refine 0.3.14-alpha.0 → 0.3.14
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/dist/components/EditMetadataForm/index.d.ts +1 -0
- package/dist/components/ShowContent/tabs.d.ts +7 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDeleteModal/useDeleteManyModal.d.ts +2 -2
- package/dist/i18n.d.ts +2 -0
- package/dist/locales/en-US/index.d.ts +1 -0
- package/dist/locales/zh-CN/index.d.ts +1 -0
- package/dist/refine.cjs +168 -135
- package/dist/refine.js +169 -136
- package/dist/style.css +65 -11
- package/package.json +5 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { i18n as I18nType } from 'i18next';
|
|
2
2
|
import { ResourceModel, PodModel, ServiceModel, IngressModel } from 'src/models';
|
|
3
|
+
import { NetworkPolicyModel } from 'src/models';
|
|
3
4
|
import { ShowTab } from './fields';
|
|
4
5
|
export declare const EventsTab: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>({ i18n, size, }: {
|
|
5
6
|
i18n: I18nType;
|
|
@@ -26,3 +27,9 @@ export declare const DataTab: <Model extends ResourceModel<import("k8s-api-provi
|
|
|
26
27
|
export declare const SecretDataTab: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>({ i18n, }: {
|
|
27
28
|
i18n: I18nType;
|
|
28
29
|
}) => ShowTab<Model>;
|
|
30
|
+
export declare const NetworkPolicyIngressRulesTab: <Model extends NetworkPolicyModel>({ i18n, }: {
|
|
31
|
+
i18n: I18nType;
|
|
32
|
+
}) => ShowTab<Model>;
|
|
33
|
+
export declare const NetworkPolicyEgressRulesTab: <Model extends NetworkPolicyModel>({ i18n, }: {
|
|
34
|
+
i18n: I18nType;
|
|
35
|
+
}) => ShowTab<Model>;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export * from './useDownloadYAML';
|
|
|
6
6
|
export * from './useEdit';
|
|
7
7
|
export * from './useGlobalStore';
|
|
8
8
|
export * from './useOpenForm';
|
|
9
|
+
export * from './useSubmitForm';
|
|
9
10
|
export { default as useNamespaceRefineFilter } from './useNamespaceRefineFilter';
|
|
10
11
|
export * from './useRefineFilters';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { LegacyModalProps } from '@cloudtower/eagle';
|
|
3
3
|
import { BaseKey } from '@refinedev/core';
|
|
4
4
|
export declare const useDeleteManyModal: (resource: string, ids: BaseKey[]) => {
|
|
5
|
-
modalProps:
|
|
5
|
+
modalProps: LegacyModalProps;
|
|
6
6
|
visible: boolean;
|
|
7
7
|
setVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
8
|
};
|
package/dist/i18n.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ export declare const resources: {
|
|
|
204
204
|
edit_distribute_storage: string;
|
|
205
205
|
edit_distribute_storage_success_toast: string;
|
|
206
206
|
edit_distribute_storage_failed_toast: string;
|
|
207
|
+
edit_taint: string;
|
|
207
208
|
edit_node_taint: string;
|
|
208
209
|
edit_node_taint_success_toast: string;
|
|
209
210
|
node_taint_NoSchedule: string;
|
|
@@ -455,6 +456,7 @@ export declare const resources: {
|
|
|
455
456
|
edit_distribute_storage: string;
|
|
456
457
|
edit_distribute_storage_success_toast: string;
|
|
457
458
|
edit_distribute_storage_failed_toast: string;
|
|
459
|
+
edit_taint: string;
|
|
458
460
|
edit_node_taint: string;
|
|
459
461
|
edit_node_taint_success_toast: string;
|
|
460
462
|
node_taint_NoSchedule: string;
|
|
@@ -201,6 +201,7 @@ declare const _default: {
|
|
|
201
201
|
edit_distribute_storage: string;
|
|
202
202
|
edit_distribute_storage_success_toast: string;
|
|
203
203
|
edit_distribute_storage_failed_toast: string;
|
|
204
|
+
edit_taint: string;
|
|
204
205
|
edit_node_taint: string;
|
|
205
206
|
edit_node_taint_success_toast: string;
|
|
206
207
|
node_taint_NoSchedule: string;
|
|
@@ -199,6 +199,7 @@ declare const _default: {
|
|
|
199
199
|
edit_distribute_storage: string;
|
|
200
200
|
edit_distribute_storage_success_toast: string;
|
|
201
201
|
edit_distribute_storage_failed_toast: string;
|
|
202
|
+
edit_taint: string;
|
|
202
203
|
edit_node_taint: string;
|
|
203
204
|
edit_node_taint_success_toast: string;
|
|
204
205
|
node_taint_NoSchedule: string;
|
package/dist/refine.cjs
CHANGED
|
@@ -658,6 +658,7 @@ const allow_expand$1 = "Volume expansion";
|
|
|
658
658
|
const edit_distribute_storage$1 = "Edit capacity allocation";
|
|
659
659
|
const edit_distribute_storage_success_toast$1 = "Successfully edited the capacity allocation";
|
|
660
660
|
const edit_distribute_storage_failed_toast$1 = "Failed to edit the capacity allocation";
|
|
661
|
+
const edit_taint$1 = "Edit taint";
|
|
661
662
|
const edit_node_taint$1 = "Edit taint";
|
|
662
663
|
const edit_node_taint_success_toast$1 = "Successfully edited the taint for the node {{name}}";
|
|
663
664
|
const node_taint_NoSchedule$1 = "NoSchedule";
|
|
@@ -675,7 +676,7 @@ const taint_effect_empty_text$1 = "Please select an effect.";
|
|
|
675
676
|
const add_label$1 = "Add label";
|
|
676
677
|
const add_annotation$1 = "Add annotation";
|
|
677
678
|
const add_taint$1 = "Add taint";
|
|
678
|
-
const look_format_requirement$1 = "View
|
|
679
|
+
const look_format_requirement$1 = "View format requirements";
|
|
679
680
|
const yes$1 = "Yes";
|
|
680
681
|
const no$1 = "No";
|
|
681
682
|
const contains$1 = "Contains";
|
|
@@ -908,6 +909,7 @@ const dovetail$1 = {
|
|
|
908
909
|
edit_distribute_storage: edit_distribute_storage$1,
|
|
909
910
|
edit_distribute_storage_success_toast: edit_distribute_storage_success_toast$1,
|
|
910
911
|
edit_distribute_storage_failed_toast: edit_distribute_storage_failed_toast$1,
|
|
912
|
+
edit_taint: edit_taint$1,
|
|
911
913
|
edit_node_taint: edit_node_taint$1,
|
|
912
914
|
edit_node_taint_success_toast: edit_node_taint_success_toast$1,
|
|
913
915
|
node_taint_NoSchedule: node_taint_NoSchedule$1,
|
|
@@ -1156,6 +1158,7 @@ const allow_expand = "卷扩容";
|
|
|
1156
1158
|
const edit_distribute_storage = "编辑分配量";
|
|
1157
1159
|
const edit_distribute_storage_success_toast = "编辑分配量成功";
|
|
1158
1160
|
const edit_distribute_storage_failed_toast = "编辑分配量失败";
|
|
1161
|
+
const edit_taint = "编辑污点";
|
|
1159
1162
|
const edit_node_taint = "编辑污点";
|
|
1160
1163
|
const edit_node_taint_success_toast = "编辑节点 {{name}} 的污点成功";
|
|
1161
1164
|
const node_taint_NoSchedule = "仅阻止调度";
|
|
@@ -1427,6 +1430,7 @@ const dovetail = {
|
|
|
1427
1430
|
edit_distribute_storage,
|
|
1428
1431
|
edit_distribute_storage_success_toast,
|
|
1429
1432
|
edit_distribute_storage_failed_toast,
|
|
1433
|
+
edit_taint,
|
|
1430
1434
|
edit_node_taint,
|
|
1431
1435
|
edit_node_taint_success_toast,
|
|
1432
1436
|
node_taint_NoSchedule,
|
|
@@ -11019,7 +11023,7 @@ const DeleteManyButton = (props) => {
|
|
|
11019
11023
|
}, [setVisible]);
|
|
11020
11024
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsxs(common.jsxRuntimeExports.Fragment, { children: [
|
|
11021
11025
|
/* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
|
|
11022
|
-
visible ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.
|
|
11026
|
+
visible ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.LegacyModal, { ...modalProps }) : null
|
|
11023
11027
|
] });
|
|
11024
11028
|
};
|
|
11025
11029
|
const index_1iwpuwe = "";
|
|
@@ -13068,6 +13072,36 @@ const LabelsAndAnnotationsShow = ({
|
|
|
13068
13072
|
})]
|
|
13069
13073
|
});
|
|
13070
13074
|
};
|
|
13075
|
+
const NetworkPolicyRulesViewer_r6jity = "";
|
|
13076
|
+
const MonacoYamlEditor$3 = React.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
|
|
13077
|
+
const EditorStyle$1 = "e1cjl2b8";
|
|
13078
|
+
const NetworkPolicyRulesViewer = ({
|
|
13079
|
+
ingressOrEgress,
|
|
13080
|
+
kind
|
|
13081
|
+
}) => {
|
|
13082
|
+
const {
|
|
13083
|
+
t: t2
|
|
13084
|
+
} = common.useTranslation();
|
|
13085
|
+
if (!ingressOrEgress) {
|
|
13086
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
13087
|
+
errorText: t2("dovetail.no_resource", {
|
|
13088
|
+
kind: kind || t2("dovetail.rule")
|
|
13089
|
+
}),
|
|
13090
|
+
type: ErrorContentType.List
|
|
13091
|
+
});
|
|
13092
|
+
}
|
|
13093
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(React.Suspense, {
|
|
13094
|
+
fallback: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Loading, {}),
|
|
13095
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(MonacoYamlEditor$3, {
|
|
13096
|
+
schemas: [],
|
|
13097
|
+
defaultValue: yaml$2.dump(ingressOrEgress),
|
|
13098
|
+
height: "100%",
|
|
13099
|
+
className: EditorStyle$1,
|
|
13100
|
+
readOnly: true,
|
|
13101
|
+
isScrollOnFocus: true
|
|
13102
|
+
})
|
|
13103
|
+
});
|
|
13104
|
+
};
|
|
13071
13105
|
const baseNoReset = "";
|
|
13072
13106
|
const index_14irc29 = "";
|
|
13073
13107
|
const WrapperStyle$3 = "wve7dfm";
|
|
@@ -13263,6 +13297,7 @@ const PodLog = ({
|
|
|
13263
13297
|
})]
|
|
13264
13298
|
});
|
|
13265
13299
|
};
|
|
13300
|
+
const tabs_1q5et9v = "";
|
|
13266
13301
|
const EventsTab = ({
|
|
13267
13302
|
i18n: i18n2,
|
|
13268
13303
|
size
|
|
@@ -13270,15 +13305,13 @@ const EventsTab = ({
|
|
|
13270
13305
|
title: i18n2.t("dovetail.event"),
|
|
13271
13306
|
key: "events",
|
|
13272
13307
|
background: "white",
|
|
13273
|
-
groups: [
|
|
13274
|
-
{
|
|
13275
|
-
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
}
|
|
13281
|
-
]
|
|
13308
|
+
groups: [{
|
|
13309
|
+
areas: [{
|
|
13310
|
+
fields: [EventsTableTabField({
|
|
13311
|
+
size
|
|
13312
|
+
})]
|
|
13313
|
+
}]
|
|
13314
|
+
}]
|
|
13282
13315
|
});
|
|
13283
13316
|
const ConditionsTab = ({
|
|
13284
13317
|
i18n: i18n2,
|
|
@@ -13287,32 +13320,25 @@ const ConditionsTab = ({
|
|
|
13287
13320
|
title: i18n2.t("dovetail.condition"),
|
|
13288
13321
|
key: "conditions",
|
|
13289
13322
|
background: "white",
|
|
13290
|
-
groups: [
|
|
13291
|
-
{
|
|
13292
|
-
|
|
13293
|
-
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
},
|
|
13306
|
-
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(ConditionsTable, { conditions: value2 })
|
|
13307
|
-
}
|
|
13308
|
-
);
|
|
13309
|
-
}
|
|
13310
|
-
}
|
|
13311
|
-
]
|
|
13323
|
+
groups: [{
|
|
13324
|
+
areas: [{
|
|
13325
|
+
fields: [{
|
|
13326
|
+
key: "Conditions",
|
|
13327
|
+
path: ["status", "conditions"],
|
|
13328
|
+
renderContent: (value2) => {
|
|
13329
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
13330
|
+
style: {
|
|
13331
|
+
padding: size === "small" ? "0 12px" : "0 24px",
|
|
13332
|
+
height: "100%"
|
|
13333
|
+
},
|
|
13334
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(ConditionsTable, {
|
|
13335
|
+
conditions: value2
|
|
13336
|
+
})
|
|
13337
|
+
});
|
|
13312
13338
|
}
|
|
13313
|
-
]
|
|
13314
|
-
}
|
|
13315
|
-
]
|
|
13339
|
+
}]
|
|
13340
|
+
}]
|
|
13341
|
+
}]
|
|
13316
13342
|
});
|
|
13317
13343
|
const LabelAnnotationsTab = ({
|
|
13318
13344
|
i18n: i18n2,
|
|
@@ -13321,53 +13347,41 @@ const LabelAnnotationsTab = ({
|
|
|
13321
13347
|
title: i18n2.t("dovetail.label_annotations"),
|
|
13322
13348
|
key: "label-annotations",
|
|
13323
13349
|
background: "white",
|
|
13324
|
-
groups: [
|
|
13325
|
-
{
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
{
|
|
13337
|
-
labels: (_a = record.metadata) == null ? void 0 : _a.labels,
|
|
13338
|
-
annotations: (_b = record.metadata) == null ? void 0 : _b.annotations,
|
|
13339
|
-
size
|
|
13340
|
-
}
|
|
13341
|
-
);
|
|
13342
|
-
}
|
|
13343
|
-
}
|
|
13344
|
-
]
|
|
13350
|
+
groups: [{
|
|
13351
|
+
areas: [{
|
|
13352
|
+
fields: [{
|
|
13353
|
+
key: "label-annotations",
|
|
13354
|
+
path: [],
|
|
13355
|
+
renderContent: (_, record) => {
|
|
13356
|
+
var _a, _b;
|
|
13357
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(LabelsAndAnnotationsShow, {
|
|
13358
|
+
labels: (_a = record.metadata) == null ? void 0 : _a.labels,
|
|
13359
|
+
annotations: (_b = record.metadata) == null ? void 0 : _b.annotations,
|
|
13360
|
+
size
|
|
13361
|
+
});
|
|
13345
13362
|
}
|
|
13346
|
-
]
|
|
13347
|
-
}
|
|
13348
|
-
]
|
|
13363
|
+
}]
|
|
13364
|
+
}]
|
|
13365
|
+
}]
|
|
13349
13366
|
});
|
|
13350
13367
|
const PodLogTab = (i18n2, apiUrl) => ({
|
|
13351
13368
|
title: i18n2.t("dovetail.log"),
|
|
13352
13369
|
key: "pod-log",
|
|
13353
13370
|
background: "white",
|
|
13354
|
-
groups: [
|
|
13355
|
-
{
|
|
13356
|
-
|
|
13357
|
-
|
|
13358
|
-
|
|
13359
|
-
|
|
13360
|
-
|
|
13361
|
-
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
}
|
|
13365
|
-
}
|
|
13366
|
-
]
|
|
13371
|
+
groups: [{
|
|
13372
|
+
areas: [{
|
|
13373
|
+
fields: [{
|
|
13374
|
+
key: "log",
|
|
13375
|
+
path: [],
|
|
13376
|
+
renderContent: (_, record) => {
|
|
13377
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(PodLog, {
|
|
13378
|
+
pod: record,
|
|
13379
|
+
apiUrl
|
|
13380
|
+
});
|
|
13367
13381
|
}
|
|
13368
|
-
]
|
|
13369
|
-
}
|
|
13370
|
-
]
|
|
13382
|
+
}]
|
|
13383
|
+
}]
|
|
13384
|
+
}]
|
|
13371
13385
|
});
|
|
13372
13386
|
const PortsTab = ({
|
|
13373
13387
|
i18n: i18n2
|
|
@@ -13375,15 +13389,11 @@ const PortsTab = ({
|
|
|
13375
13389
|
title: i18n2.t("dovetail.port"),
|
|
13376
13390
|
key: "ports",
|
|
13377
13391
|
background: "white",
|
|
13378
|
-
groups: [
|
|
13379
|
-
{
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
}
|
|
13384
|
-
]
|
|
13385
|
-
}
|
|
13386
|
-
]
|
|
13392
|
+
groups: [{
|
|
13393
|
+
areas: [{
|
|
13394
|
+
fields: [PortsTableField()]
|
|
13395
|
+
}]
|
|
13396
|
+
}]
|
|
13387
13397
|
});
|
|
13388
13398
|
const IngressRulesTab = ({
|
|
13389
13399
|
i18n: i18n2
|
|
@@ -13391,11 +13401,11 @@ const IngressRulesTab = ({
|
|
|
13391
13401
|
title: i18n2.t("dovetail.rule"),
|
|
13392
13402
|
key: "ingress-rules",
|
|
13393
13403
|
background: "white",
|
|
13394
|
-
groups: [
|
|
13395
|
-
{
|
|
13396
|
-
|
|
13397
|
-
}
|
|
13398
|
-
]
|
|
13404
|
+
groups: [{
|
|
13405
|
+
areas: [{
|
|
13406
|
+
fields: [IngressRulesTableTabField()]
|
|
13407
|
+
}]
|
|
13408
|
+
}]
|
|
13399
13409
|
});
|
|
13400
13410
|
const DataTab = ({
|
|
13401
13411
|
i18n: i18n2
|
|
@@ -13403,11 +13413,11 @@ const DataTab = ({
|
|
|
13403
13413
|
title: i18n2.t("dovetail.data"),
|
|
13404
13414
|
key: "data",
|
|
13405
13415
|
background: "white",
|
|
13406
|
-
groups: [
|
|
13407
|
-
{
|
|
13408
|
-
|
|
13409
|
-
}
|
|
13410
|
-
]
|
|
13416
|
+
groups: [{
|
|
13417
|
+
areas: [{
|
|
13418
|
+
fields: [DataField(i18n2)]
|
|
13419
|
+
}]
|
|
13420
|
+
}]
|
|
13411
13421
|
});
|
|
13412
13422
|
const SecretDataTab = ({
|
|
13413
13423
|
i18n: i18n2
|
|
@@ -13415,42 +13425,59 @@ const SecretDataTab = ({
|
|
|
13415
13425
|
title: i18n2.t("dovetail.data"),
|
|
13416
13426
|
key: "secret-data",
|
|
13417
13427
|
background: "white",
|
|
13418
|
-
groups: [
|
|
13419
|
-
{
|
|
13420
|
-
|
|
13421
|
-
}
|
|
13422
|
-
]
|
|
13428
|
+
groups: [{
|
|
13429
|
+
areas: [{
|
|
13430
|
+
fields: [SecretDataField()]
|
|
13431
|
+
}]
|
|
13432
|
+
}]
|
|
13433
|
+
});
|
|
13434
|
+
const NetworkPolicyRulesViewerStyle = "nrkw30o";
|
|
13435
|
+
const NetworkPolicyIngressRulesTab = ({
|
|
13436
|
+
i18n: i18n2
|
|
13437
|
+
}) => ({
|
|
13438
|
+
title: i18n2.t("dovetail.ingress_rule"),
|
|
13439
|
+
key: "ingress-rules",
|
|
13440
|
+
background: "white",
|
|
13441
|
+
groups: [{
|
|
13442
|
+
areas: [{
|
|
13443
|
+
fields: [{
|
|
13444
|
+
key: "Ingress",
|
|
13445
|
+
path: ["spec", "ingress"],
|
|
13446
|
+
render: (ingress) => {
|
|
13447
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
13448
|
+
className: NetworkPolicyRulesViewerStyle,
|
|
13449
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(NetworkPolicyRulesViewer, {
|
|
13450
|
+
ingressOrEgress: ingress
|
|
13451
|
+
})
|
|
13452
|
+
});
|
|
13453
|
+
}
|
|
13454
|
+
}]
|
|
13455
|
+
}]
|
|
13456
|
+
}]
|
|
13457
|
+
});
|
|
13458
|
+
const NetworkPolicyEgressRulesTab = ({
|
|
13459
|
+
i18n: i18n2
|
|
13460
|
+
}) => ({
|
|
13461
|
+
title: i18n2.t("dovetail.egress_rule"),
|
|
13462
|
+
key: "egress-rules",
|
|
13463
|
+
background: "white",
|
|
13464
|
+
groups: [{
|
|
13465
|
+
areas: [{
|
|
13466
|
+
fields: [{
|
|
13467
|
+
key: "Egress",
|
|
13468
|
+
path: ["spec", "egress"],
|
|
13469
|
+
render: (egress) => {
|
|
13470
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
13471
|
+
className: NetworkPolicyRulesViewerStyle,
|
|
13472
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(NetworkPolicyRulesViewer, {
|
|
13473
|
+
ingressOrEgress: egress
|
|
13474
|
+
})
|
|
13475
|
+
});
|
|
13476
|
+
}
|
|
13477
|
+
}]
|
|
13478
|
+
}]
|
|
13479
|
+
}]
|
|
13423
13480
|
});
|
|
13424
|
-
const NetworkPolicyRulesViewer_r6jity = "";
|
|
13425
|
-
const MonacoYamlEditor$3 = React.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
|
|
13426
|
-
const EditorStyle$1 = "e1cjl2b8";
|
|
13427
|
-
const NetworkPolicyRulesViewer = ({
|
|
13428
|
-
ingressOrEgress,
|
|
13429
|
-
kind
|
|
13430
|
-
}) => {
|
|
13431
|
-
const {
|
|
13432
|
-
t: t2
|
|
13433
|
-
} = common.useTranslation();
|
|
13434
|
-
if (!ingressOrEgress) {
|
|
13435
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
13436
|
-
errorText: t2("dovetail.no_resource", {
|
|
13437
|
-
kind: kind || t2("dovetail.rule")
|
|
13438
|
-
}),
|
|
13439
|
-
type: ErrorContentType.Card
|
|
13440
|
-
});
|
|
13441
|
-
}
|
|
13442
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(React.Suspense, {
|
|
13443
|
-
fallback: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Loading, {}),
|
|
13444
|
-
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(MonacoYamlEditor$3, {
|
|
13445
|
-
schemas: [],
|
|
13446
|
-
defaultValue: yaml$2.dump(ingressOrEgress),
|
|
13447
|
-
height: "300px",
|
|
13448
|
-
className: EditorStyle$1,
|
|
13449
|
-
readOnly: true,
|
|
13450
|
-
isScrollOnFocus: true
|
|
13451
|
-
})
|
|
13452
|
-
});
|
|
13453
|
-
};
|
|
13454
13481
|
const PodContainersTable = ({
|
|
13455
13482
|
containerStatuses,
|
|
13456
13483
|
initContainerStatuses
|
|
@@ -13741,7 +13768,7 @@ function Tabs(props) {
|
|
|
13741
13768
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
13742
13769
|
}) });
|
|
13743
13770
|
}
|
|
13744
|
-
const
|
|
13771
|
+
const ShowContentView_1gmp0tu = "";
|
|
13745
13772
|
const ShowContentWrapperStyle = "soapvs9";
|
|
13746
13773
|
const BackButton = "b13d603q";
|
|
13747
13774
|
const ToolBarWrapper = "tm8eaia";
|
|
@@ -13899,7 +13926,8 @@ const ShowContentView = (props) => {
|
|
|
13899
13926
|
if (shouldRenderRow) {
|
|
13900
13927
|
FieldContainer = eagle.Row;
|
|
13901
13928
|
fieldContainerProps = {
|
|
13902
|
-
gutter: [24, 8]
|
|
13929
|
+
gutter: [24, 8],
|
|
13930
|
+
className: "c1lh8loq"
|
|
13903
13931
|
};
|
|
13904
13932
|
}
|
|
13905
13933
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(GroupContainer, {
|
|
@@ -16618,7 +16646,7 @@ function ConfirmModal({
|
|
|
16618
16646
|
t: t2
|
|
16619
16647
|
} = common.useTranslation();
|
|
16620
16648
|
const popModal = eagle.usePopModal();
|
|
16621
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.
|
|
16649
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.LegacyModal, {
|
|
16622
16650
|
className: SmallModalStyle,
|
|
16623
16651
|
width: "414px",
|
|
16624
16652
|
title: t2("dovetail.edit_form"),
|
|
@@ -19367,9 +19395,9 @@ const PortMappingColumnRenderer = (i18n2) => {
|
|
|
19367
19395
|
style: {
|
|
19368
19396
|
whiteSpace: "pre"
|
|
19369
19397
|
},
|
|
19370
|
-
children: [v.servicePort, "
|
|
19398
|
+
children: [v.servicePort, " → ", v.targetPort, "/", v.protocol]
|
|
19371
19399
|
}),
|
|
19372
|
-
tooltip: `${v.servicePort}
|
|
19400
|
+
tooltip: `${v.servicePort} → ${v.targetPort}/${v.protocol}`
|
|
19373
19401
|
}, v.servicePort));
|
|
19374
19402
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, {
|
|
19375
19403
|
value: content
|
|
@@ -19935,6 +19963,7 @@ exports.EditFieldModal = EditFieldModal;
|
|
|
19935
19963
|
exports.EditLabelDropdownMenuItem = EditLabelDropdownMenuItem;
|
|
19936
19964
|
exports.EditLabelForm = EditLabelForm;
|
|
19937
19965
|
exports.EditNodeTaintDropdownMenuItem = EditNodeTaintDropdownMenuItem;
|
|
19966
|
+
exports.EditNodeTaintForm = EditNodeTaintForm;
|
|
19938
19967
|
exports.ErrorContent = WidgetErrorContent;
|
|
19939
19968
|
exports.ErrorContentType = ErrorContentType;
|
|
19940
19969
|
exports.ErrorWrapper = ErrorWrapper;
|
|
@@ -19995,7 +20024,9 @@ exports.NamespaceField = NamespaceField;
|
|
|
19995
20024
|
exports.NamespaceSelectWidget = NamespaceSelectWidget;
|
|
19996
20025
|
exports.NamespacesFilter = NamespacesFilter;
|
|
19997
20026
|
exports.NetworkPolicyEgressRulesGroup = NetworkPolicyEgressRulesGroup;
|
|
20027
|
+
exports.NetworkPolicyEgressRulesTab = NetworkPolicyEgressRulesTab;
|
|
19998
20028
|
exports.NetworkPolicyIngressRulesGroup = NetworkPolicyIngressRulesGroup;
|
|
20029
|
+
exports.NetworkPolicyIngressRulesTab = NetworkPolicyIngressRulesTab;
|
|
19999
20030
|
exports.NetworkPolicyModel = NetworkPolicyModel;
|
|
20000
20031
|
exports.NetworkPolicyRulesViewer = NetworkPolicyRulesViewer;
|
|
20001
20032
|
exports.NodeModel = NodeModel;
|
|
@@ -20132,6 +20163,7 @@ exports.StorageClassPvGroup = StorageClassPvGroup;
|
|
|
20132
20163
|
exports.Table = Table;
|
|
20133
20164
|
exports.Tabs = Tabs;
|
|
20134
20165
|
exports.Tags = Tags;
|
|
20166
|
+
exports.TaintEffectTooltip = TaintEffectTooltip;
|
|
20135
20167
|
exports.TextTags = TextTags;
|
|
20136
20168
|
exports.Time = Time;
|
|
20137
20169
|
exports.ValidateRfc1035Name = ValidateRfc1035Name;
|
|
@@ -20179,6 +20211,7 @@ exports.useOpenForm = useOpenForm;
|
|
|
20179
20211
|
exports.useRefineFilters = useRefineFilters;
|
|
20180
20212
|
exports.useRefineForm = useRefineForm;
|
|
20181
20213
|
exports.useSchema = useSchema;
|
|
20214
|
+
exports.useSubmitForm = useSubmitForm;
|
|
20182
20215
|
exports.validateDataKey = validateDataKey;
|
|
20183
20216
|
exports.validateDnsSubdomainName = validateDnsSubdomainName;
|
|
20184
20217
|
exports.validateLabelKey = validateLabelKey;
|
package/dist/refine.js
CHANGED
|
@@ -11,7 +11,7 @@ import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNav
|
|
|
11
11
|
import { parse, stringify } from "qs";
|
|
12
12
|
import React, { createElement, isValidElement, cloneElement, Children, useContext, useCallback, createContext, useState, useEffect, useMemo, useRef, useImperativeHandle, lazy, Suspense, memo, forwardRef } from "react";
|
|
13
13
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
14
|
-
import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, Typo, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, ImmersiveDialog, SmallDialog, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, Dropdown, Menu as Menu$1, Icon, Divider,
|
|
14
|
+
import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, Typo, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, ImmersiveDialog, SmallDialog, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, Dropdown, Menu as Menu$1, Icon, Divider, LegacyModal, StatusCapsule, Popover, AntdTable, Upload, TableForm, AutoComplete, getOptions, DonutChart, SegmentControl, Checkbox, Tabs as Tabs$1, TabsTabPane, Col, Row, useMessage, SearchInput, Token, AntdSelectOptGroup, WizardDialog, MenuItemGroup, Layout as Layout$1, InputGroup, InputInteger, Time as Time$1, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
|
|
15
15
|
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ArrowChevronDownSmall16BlueIcon, ArrowChevronUpSmall16BlueIcon, Retry16GradientBlueIcon, OpenTerminal16GradientBlueIcon, ArrowChevronDown16BlueIcon, ArrowChevronUp16BlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
|
|
16
16
|
import { first, get as get$2, cloneDeep, set, omit as omit$1, merge, isEqual as isEqual$1, debounce, last, setWith, clone, isObject as isObject$4, uniq, keyBy } from "lodash-es";
|
|
17
17
|
import yaml$2 from "js-yaml";
|
|
@@ -639,6 +639,7 @@ const allow_expand$1 = "Volume expansion";
|
|
|
639
639
|
const edit_distribute_storage$1 = "Edit capacity allocation";
|
|
640
640
|
const edit_distribute_storage_success_toast$1 = "Successfully edited the capacity allocation";
|
|
641
641
|
const edit_distribute_storage_failed_toast$1 = "Failed to edit the capacity allocation";
|
|
642
|
+
const edit_taint$1 = "Edit taint";
|
|
642
643
|
const edit_node_taint$1 = "Edit taint";
|
|
643
644
|
const edit_node_taint_success_toast$1 = "Successfully edited the taint for the node {{name}}";
|
|
644
645
|
const node_taint_NoSchedule$1 = "NoSchedule";
|
|
@@ -656,7 +657,7 @@ const taint_effect_empty_text$1 = "Please select an effect.";
|
|
|
656
657
|
const add_label$1 = "Add label";
|
|
657
658
|
const add_annotation$1 = "Add annotation";
|
|
658
659
|
const add_taint$1 = "Add taint";
|
|
659
|
-
const look_format_requirement$1 = "View
|
|
660
|
+
const look_format_requirement$1 = "View format requirements";
|
|
660
661
|
const yes$1 = "Yes";
|
|
661
662
|
const no$1 = "No";
|
|
662
663
|
const contains$1 = "Contains";
|
|
@@ -889,6 +890,7 @@ const dovetail$1 = {
|
|
|
889
890
|
edit_distribute_storage: edit_distribute_storage$1,
|
|
890
891
|
edit_distribute_storage_success_toast: edit_distribute_storage_success_toast$1,
|
|
891
892
|
edit_distribute_storage_failed_toast: edit_distribute_storage_failed_toast$1,
|
|
893
|
+
edit_taint: edit_taint$1,
|
|
892
894
|
edit_node_taint: edit_node_taint$1,
|
|
893
895
|
edit_node_taint_success_toast: edit_node_taint_success_toast$1,
|
|
894
896
|
node_taint_NoSchedule: node_taint_NoSchedule$1,
|
|
@@ -1137,6 +1139,7 @@ const allow_expand = "卷扩容";
|
|
|
1137
1139
|
const edit_distribute_storage = "编辑分配量";
|
|
1138
1140
|
const edit_distribute_storage_success_toast = "编辑分配量成功";
|
|
1139
1141
|
const edit_distribute_storage_failed_toast = "编辑分配量失败";
|
|
1142
|
+
const edit_taint = "编辑污点";
|
|
1140
1143
|
const edit_node_taint = "编辑污点";
|
|
1141
1144
|
const edit_node_taint_success_toast = "编辑节点 {{name}} 的污点成功";
|
|
1142
1145
|
const node_taint_NoSchedule = "仅阻止调度";
|
|
@@ -1408,6 +1411,7 @@ const dovetail = {
|
|
|
1408
1411
|
edit_distribute_storage,
|
|
1409
1412
|
edit_distribute_storage_success_toast,
|
|
1410
1413
|
edit_distribute_storage_failed_toast,
|
|
1414
|
+
edit_taint,
|
|
1411
1415
|
edit_node_taint,
|
|
1412
1416
|
edit_node_taint_success_toast,
|
|
1413
1417
|
node_taint_NoSchedule,
|
|
@@ -11000,7 +11004,7 @@ const DeleteManyButton = (props) => {
|
|
|
11000
11004
|
}, [setVisible]);
|
|
11001
11005
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
11002
11006
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
|
|
11003
|
-
visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11007
|
+
visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(LegacyModal, { ...modalProps }) : null
|
|
11004
11008
|
] });
|
|
11005
11009
|
};
|
|
11006
11010
|
const index_1iwpuwe = "";
|
|
@@ -13049,6 +13053,36 @@ const LabelsAndAnnotationsShow = ({
|
|
|
13049
13053
|
})]
|
|
13050
13054
|
});
|
|
13051
13055
|
};
|
|
13056
|
+
const NetworkPolicyRulesViewer_r6jity = "";
|
|
13057
|
+
const MonacoYamlEditor$3 = lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
|
|
13058
|
+
const EditorStyle$1 = "e1cjl2b8";
|
|
13059
|
+
const NetworkPolicyRulesViewer = ({
|
|
13060
|
+
ingressOrEgress,
|
|
13061
|
+
kind
|
|
13062
|
+
}) => {
|
|
13063
|
+
const {
|
|
13064
|
+
t: t2
|
|
13065
|
+
} = useTranslation();
|
|
13066
|
+
if (!ingressOrEgress) {
|
|
13067
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
13068
|
+
errorText: t2("dovetail.no_resource", {
|
|
13069
|
+
kind: kind || t2("dovetail.rule")
|
|
13070
|
+
}),
|
|
13071
|
+
type: ErrorContentType.List
|
|
13072
|
+
});
|
|
13073
|
+
}
|
|
13074
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, {
|
|
13075
|
+
fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}),
|
|
13076
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MonacoYamlEditor$3, {
|
|
13077
|
+
schemas: [],
|
|
13078
|
+
defaultValue: yaml$2.dump(ingressOrEgress),
|
|
13079
|
+
height: "100%",
|
|
13080
|
+
className: EditorStyle$1,
|
|
13081
|
+
readOnly: true,
|
|
13082
|
+
isScrollOnFocus: true
|
|
13083
|
+
})
|
|
13084
|
+
});
|
|
13085
|
+
};
|
|
13052
13086
|
const baseNoReset = "";
|
|
13053
13087
|
const index_14irc29 = "";
|
|
13054
13088
|
const WrapperStyle$3 = "wve7dfm";
|
|
@@ -13244,6 +13278,7 @@ const PodLog = ({
|
|
|
13244
13278
|
})]
|
|
13245
13279
|
});
|
|
13246
13280
|
};
|
|
13281
|
+
const tabs_1q5et9v = "";
|
|
13247
13282
|
const EventsTab = ({
|
|
13248
13283
|
i18n: i18n2,
|
|
13249
13284
|
size
|
|
@@ -13251,15 +13286,13 @@ const EventsTab = ({
|
|
|
13251
13286
|
title: i18n2.t("dovetail.event"),
|
|
13252
13287
|
key: "events",
|
|
13253
13288
|
background: "white",
|
|
13254
|
-
groups: [
|
|
13255
|
-
{
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13260
|
-
|
|
13261
|
-
}
|
|
13262
|
-
]
|
|
13289
|
+
groups: [{
|
|
13290
|
+
areas: [{
|
|
13291
|
+
fields: [EventsTableTabField({
|
|
13292
|
+
size
|
|
13293
|
+
})]
|
|
13294
|
+
}]
|
|
13295
|
+
}]
|
|
13263
13296
|
});
|
|
13264
13297
|
const ConditionsTab = ({
|
|
13265
13298
|
i18n: i18n2,
|
|
@@ -13268,32 +13301,25 @@ const ConditionsTab = ({
|
|
|
13268
13301
|
title: i18n2.t("dovetail.condition"),
|
|
13269
13302
|
key: "conditions",
|
|
13270
13303
|
background: "white",
|
|
13271
|
-
groups: [
|
|
13272
|
-
{
|
|
13273
|
-
|
|
13274
|
-
|
|
13275
|
-
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13285
|
-
|
|
13286
|
-
},
|
|
13287
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConditionsTable, { conditions: value2 })
|
|
13288
|
-
}
|
|
13289
|
-
);
|
|
13290
|
-
}
|
|
13291
|
-
}
|
|
13292
|
-
]
|
|
13304
|
+
groups: [{
|
|
13305
|
+
areas: [{
|
|
13306
|
+
fields: [{
|
|
13307
|
+
key: "Conditions",
|
|
13308
|
+
path: ["status", "conditions"],
|
|
13309
|
+
renderContent: (value2) => {
|
|
13310
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
13311
|
+
style: {
|
|
13312
|
+
padding: size === "small" ? "0 12px" : "0 24px",
|
|
13313
|
+
height: "100%"
|
|
13314
|
+
},
|
|
13315
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConditionsTable, {
|
|
13316
|
+
conditions: value2
|
|
13317
|
+
})
|
|
13318
|
+
});
|
|
13293
13319
|
}
|
|
13294
|
-
]
|
|
13295
|
-
}
|
|
13296
|
-
]
|
|
13320
|
+
}]
|
|
13321
|
+
}]
|
|
13322
|
+
}]
|
|
13297
13323
|
});
|
|
13298
13324
|
const LabelAnnotationsTab = ({
|
|
13299
13325
|
i18n: i18n2,
|
|
@@ -13302,53 +13328,41 @@ const LabelAnnotationsTab = ({
|
|
|
13302
13328
|
title: i18n2.t("dovetail.label_annotations"),
|
|
13303
13329
|
key: "label-annotations",
|
|
13304
13330
|
background: "white",
|
|
13305
|
-
groups: [
|
|
13306
|
-
{
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
|
|
13312
|
-
|
|
13313
|
-
|
|
13314
|
-
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
{
|
|
13318
|
-
labels: (_a = record.metadata) == null ? void 0 : _a.labels,
|
|
13319
|
-
annotations: (_b = record.metadata) == null ? void 0 : _b.annotations,
|
|
13320
|
-
size
|
|
13321
|
-
}
|
|
13322
|
-
);
|
|
13323
|
-
}
|
|
13324
|
-
}
|
|
13325
|
-
]
|
|
13331
|
+
groups: [{
|
|
13332
|
+
areas: [{
|
|
13333
|
+
fields: [{
|
|
13334
|
+
key: "label-annotations",
|
|
13335
|
+
path: [],
|
|
13336
|
+
renderContent: (_, record) => {
|
|
13337
|
+
var _a, _b;
|
|
13338
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LabelsAndAnnotationsShow, {
|
|
13339
|
+
labels: (_a = record.metadata) == null ? void 0 : _a.labels,
|
|
13340
|
+
annotations: (_b = record.metadata) == null ? void 0 : _b.annotations,
|
|
13341
|
+
size
|
|
13342
|
+
});
|
|
13326
13343
|
}
|
|
13327
|
-
]
|
|
13328
|
-
}
|
|
13329
|
-
]
|
|
13344
|
+
}]
|
|
13345
|
+
}]
|
|
13346
|
+
}]
|
|
13330
13347
|
});
|
|
13331
13348
|
const PodLogTab = (i18n2, apiUrl) => ({
|
|
13332
13349
|
title: i18n2.t("dovetail.log"),
|
|
13333
13350
|
key: "pod-log",
|
|
13334
13351
|
background: "white",
|
|
13335
|
-
groups: [
|
|
13336
|
-
{
|
|
13337
|
-
|
|
13338
|
-
|
|
13339
|
-
|
|
13340
|
-
|
|
13341
|
-
|
|
13342
|
-
|
|
13343
|
-
|
|
13344
|
-
|
|
13345
|
-
}
|
|
13346
|
-
}
|
|
13347
|
-
]
|
|
13352
|
+
groups: [{
|
|
13353
|
+
areas: [{
|
|
13354
|
+
fields: [{
|
|
13355
|
+
key: "log",
|
|
13356
|
+
path: [],
|
|
13357
|
+
renderContent: (_, record) => {
|
|
13358
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PodLog, {
|
|
13359
|
+
pod: record,
|
|
13360
|
+
apiUrl
|
|
13361
|
+
});
|
|
13348
13362
|
}
|
|
13349
|
-
]
|
|
13350
|
-
}
|
|
13351
|
-
]
|
|
13363
|
+
}]
|
|
13364
|
+
}]
|
|
13365
|
+
}]
|
|
13352
13366
|
});
|
|
13353
13367
|
const PortsTab = ({
|
|
13354
13368
|
i18n: i18n2
|
|
@@ -13356,15 +13370,11 @@ const PortsTab = ({
|
|
|
13356
13370
|
title: i18n2.t("dovetail.port"),
|
|
13357
13371
|
key: "ports",
|
|
13358
13372
|
background: "white",
|
|
13359
|
-
groups: [
|
|
13360
|
-
{
|
|
13361
|
-
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
}
|
|
13365
|
-
]
|
|
13366
|
-
}
|
|
13367
|
-
]
|
|
13373
|
+
groups: [{
|
|
13374
|
+
areas: [{
|
|
13375
|
+
fields: [PortsTableField()]
|
|
13376
|
+
}]
|
|
13377
|
+
}]
|
|
13368
13378
|
});
|
|
13369
13379
|
const IngressRulesTab = ({
|
|
13370
13380
|
i18n: i18n2
|
|
@@ -13372,11 +13382,11 @@ const IngressRulesTab = ({
|
|
|
13372
13382
|
title: i18n2.t("dovetail.rule"),
|
|
13373
13383
|
key: "ingress-rules",
|
|
13374
13384
|
background: "white",
|
|
13375
|
-
groups: [
|
|
13376
|
-
{
|
|
13377
|
-
|
|
13378
|
-
}
|
|
13379
|
-
]
|
|
13385
|
+
groups: [{
|
|
13386
|
+
areas: [{
|
|
13387
|
+
fields: [IngressRulesTableTabField()]
|
|
13388
|
+
}]
|
|
13389
|
+
}]
|
|
13380
13390
|
});
|
|
13381
13391
|
const DataTab = ({
|
|
13382
13392
|
i18n: i18n2
|
|
@@ -13384,11 +13394,11 @@ const DataTab = ({
|
|
|
13384
13394
|
title: i18n2.t("dovetail.data"),
|
|
13385
13395
|
key: "data",
|
|
13386
13396
|
background: "white",
|
|
13387
|
-
groups: [
|
|
13388
|
-
{
|
|
13389
|
-
|
|
13390
|
-
}
|
|
13391
|
-
]
|
|
13397
|
+
groups: [{
|
|
13398
|
+
areas: [{
|
|
13399
|
+
fields: [DataField(i18n2)]
|
|
13400
|
+
}]
|
|
13401
|
+
}]
|
|
13392
13402
|
});
|
|
13393
13403
|
const SecretDataTab = ({
|
|
13394
13404
|
i18n: i18n2
|
|
@@ -13396,42 +13406,59 @@ const SecretDataTab = ({
|
|
|
13396
13406
|
title: i18n2.t("dovetail.data"),
|
|
13397
13407
|
key: "secret-data",
|
|
13398
13408
|
background: "white",
|
|
13399
|
-
groups: [
|
|
13400
|
-
{
|
|
13401
|
-
|
|
13402
|
-
}
|
|
13403
|
-
]
|
|
13409
|
+
groups: [{
|
|
13410
|
+
areas: [{
|
|
13411
|
+
fields: [SecretDataField()]
|
|
13412
|
+
}]
|
|
13413
|
+
}]
|
|
13414
|
+
});
|
|
13415
|
+
const NetworkPolicyRulesViewerStyle = "nrkw30o";
|
|
13416
|
+
const NetworkPolicyIngressRulesTab = ({
|
|
13417
|
+
i18n: i18n2
|
|
13418
|
+
}) => ({
|
|
13419
|
+
title: i18n2.t("dovetail.ingress_rule"),
|
|
13420
|
+
key: "ingress-rules",
|
|
13421
|
+
background: "white",
|
|
13422
|
+
groups: [{
|
|
13423
|
+
areas: [{
|
|
13424
|
+
fields: [{
|
|
13425
|
+
key: "Ingress",
|
|
13426
|
+
path: ["spec", "ingress"],
|
|
13427
|
+
render: (ingress) => {
|
|
13428
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
13429
|
+
className: NetworkPolicyRulesViewerStyle,
|
|
13430
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(NetworkPolicyRulesViewer, {
|
|
13431
|
+
ingressOrEgress: ingress
|
|
13432
|
+
})
|
|
13433
|
+
});
|
|
13434
|
+
}
|
|
13435
|
+
}]
|
|
13436
|
+
}]
|
|
13437
|
+
}]
|
|
13438
|
+
});
|
|
13439
|
+
const NetworkPolicyEgressRulesTab = ({
|
|
13440
|
+
i18n: i18n2
|
|
13441
|
+
}) => ({
|
|
13442
|
+
title: i18n2.t("dovetail.egress_rule"),
|
|
13443
|
+
key: "egress-rules",
|
|
13444
|
+
background: "white",
|
|
13445
|
+
groups: [{
|
|
13446
|
+
areas: [{
|
|
13447
|
+
fields: [{
|
|
13448
|
+
key: "Egress",
|
|
13449
|
+
path: ["spec", "egress"],
|
|
13450
|
+
render: (egress) => {
|
|
13451
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
13452
|
+
className: NetworkPolicyRulesViewerStyle,
|
|
13453
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(NetworkPolicyRulesViewer, {
|
|
13454
|
+
ingressOrEgress: egress
|
|
13455
|
+
})
|
|
13456
|
+
});
|
|
13457
|
+
}
|
|
13458
|
+
}]
|
|
13459
|
+
}]
|
|
13460
|
+
}]
|
|
13404
13461
|
});
|
|
13405
|
-
const NetworkPolicyRulesViewer_r6jity = "";
|
|
13406
|
-
const MonacoYamlEditor$3 = lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
|
|
13407
|
-
const EditorStyle$1 = "e1cjl2b8";
|
|
13408
|
-
const NetworkPolicyRulesViewer = ({
|
|
13409
|
-
ingressOrEgress,
|
|
13410
|
-
kind
|
|
13411
|
-
}) => {
|
|
13412
|
-
const {
|
|
13413
|
-
t: t2
|
|
13414
|
-
} = useTranslation();
|
|
13415
|
-
if (!ingressOrEgress) {
|
|
13416
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
13417
|
-
errorText: t2("dovetail.no_resource", {
|
|
13418
|
-
kind: kind || t2("dovetail.rule")
|
|
13419
|
-
}),
|
|
13420
|
-
type: ErrorContentType.Card
|
|
13421
|
-
});
|
|
13422
|
-
}
|
|
13423
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, {
|
|
13424
|
-
fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}),
|
|
13425
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MonacoYamlEditor$3, {
|
|
13426
|
-
schemas: [],
|
|
13427
|
-
defaultValue: yaml$2.dump(ingressOrEgress),
|
|
13428
|
-
height: "300px",
|
|
13429
|
-
className: EditorStyle$1,
|
|
13430
|
-
readOnly: true,
|
|
13431
|
-
isScrollOnFocus: true
|
|
13432
|
-
})
|
|
13433
|
-
});
|
|
13434
|
-
};
|
|
13435
13462
|
const PodContainersTable = ({
|
|
13436
13463
|
containerStatuses,
|
|
13437
13464
|
initContainerStatuses
|
|
@@ -13722,7 +13749,7 @@ function Tabs(props) {
|
|
|
13722
13749
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
13723
13750
|
}) });
|
|
13724
13751
|
}
|
|
13725
|
-
const
|
|
13752
|
+
const ShowContentView_1gmp0tu = "";
|
|
13726
13753
|
const ShowContentWrapperStyle = "soapvs9";
|
|
13727
13754
|
const BackButton = "b13d603q";
|
|
13728
13755
|
const ToolBarWrapper = "tm8eaia";
|
|
@@ -13880,7 +13907,8 @@ const ShowContentView = (props) => {
|
|
|
13880
13907
|
if (shouldRenderRow) {
|
|
13881
13908
|
FieldContainer = Row;
|
|
13882
13909
|
fieldContainerProps = {
|
|
13883
|
-
gutter: [24, 8]
|
|
13910
|
+
gutter: [24, 8],
|
|
13911
|
+
className: "c1lh8loq"
|
|
13884
13912
|
};
|
|
13885
13913
|
}
|
|
13886
13914
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(GroupContainer, {
|
|
@@ -16599,7 +16627,7 @@ function ConfirmModal({
|
|
|
16599
16627
|
t: t2
|
|
16600
16628
|
} = useTranslation();
|
|
16601
16629
|
const popModal = usePopModal();
|
|
16602
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
16630
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LegacyModal, {
|
|
16603
16631
|
className: SmallModalStyle,
|
|
16604
16632
|
width: "414px",
|
|
16605
16633
|
title: t2("dovetail.edit_form"),
|
|
@@ -19348,9 +19376,9 @@ const PortMappingColumnRenderer = (i18n2) => {
|
|
|
19348
19376
|
style: {
|
|
19349
19377
|
whiteSpace: "pre"
|
|
19350
19378
|
},
|
|
19351
|
-
children: [v.servicePort, "
|
|
19379
|
+
children: [v.servicePort, " → ", v.targetPort, "/", v.protocol]
|
|
19352
19380
|
}),
|
|
19353
|
-
tooltip: `${v.servicePort}
|
|
19381
|
+
tooltip: `${v.servicePort} → ${v.targetPort}/${v.protocol}`
|
|
19354
19382
|
}, v.servicePort));
|
|
19355
19383
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
19356
19384
|
value: content
|
|
@@ -19917,6 +19945,7 @@ export {
|
|
|
19917
19945
|
EditLabelDropdownMenuItem,
|
|
19918
19946
|
EditLabelForm,
|
|
19919
19947
|
EditNodeTaintDropdownMenuItem,
|
|
19948
|
+
EditNodeTaintForm,
|
|
19920
19949
|
WidgetErrorContent as ErrorContent,
|
|
19921
19950
|
ErrorContentType,
|
|
19922
19951
|
ErrorWrapper,
|
|
@@ -19977,7 +20006,9 @@ export {
|
|
|
19977
20006
|
NamespaceSelectWidget,
|
|
19978
20007
|
NamespacesFilter,
|
|
19979
20008
|
NetworkPolicyEgressRulesGroup,
|
|
20009
|
+
NetworkPolicyEgressRulesTab,
|
|
19980
20010
|
NetworkPolicyIngressRulesGroup,
|
|
20011
|
+
NetworkPolicyIngressRulesTab,
|
|
19981
20012
|
NetworkPolicyModel,
|
|
19982
20013
|
NetworkPolicyRulesViewer,
|
|
19983
20014
|
NodeModel,
|
|
@@ -20114,6 +20145,7 @@ export {
|
|
|
20114
20145
|
Table,
|
|
20115
20146
|
Tabs,
|
|
20116
20147
|
Tags,
|
|
20148
|
+
TaintEffectTooltip,
|
|
20117
20149
|
TextTags,
|
|
20118
20150
|
Time,
|
|
20119
20151
|
ValidateRfc1035Name,
|
|
@@ -20161,6 +20193,7 @@ export {
|
|
|
20161
20193
|
useRefineFilters,
|
|
20162
20194
|
useRefineForm,
|
|
20163
20195
|
useSchema,
|
|
20196
|
+
useSubmitForm,
|
|
20164
20197
|
validateDataKey,
|
|
20165
20198
|
validateDnsSubdomainName,
|
|
20166
20199
|
validateLabelKey,
|
package/dist/style.css
CHANGED
|
@@ -2033,6 +2033,61 @@
|
|
|
2033
2033
|
.c1wn08fn {
|
|
2034
2034
|
display: flex;
|
|
2035
2035
|
flex-direction: column;
|
|
2036
|
+
}/* // basic */
|
|
2037
|
+
/* FishEye Color Variables and Functions */
|
|
2038
|
+
/*
|
|
2039
|
+
--------------------------- Primary Color ---------------------------
|
|
2040
|
+
*/
|
|
2041
|
+
/*
|
|
2042
|
+
---------------------------When necessary to add at any time---------------------------
|
|
2043
|
+
*/
|
|
2044
|
+
/* computed */
|
|
2045
|
+
/* blue */
|
|
2046
|
+
/* green */
|
|
2047
|
+
/* yellow */
|
|
2048
|
+
/* red */
|
|
2049
|
+
/* purple */
|
|
2050
|
+
/* palette global token*/
|
|
2051
|
+
/* color opaque */
|
|
2052
|
+
/* color transparent */
|
|
2053
|
+
/* blue transparent */
|
|
2054
|
+
/* green transparent */
|
|
2055
|
+
/* yellow transparent */
|
|
2056
|
+
/* red transparent */
|
|
2057
|
+
/* gray transparent */
|
|
2058
|
+
/* white transparent */
|
|
2059
|
+
/* gradient opaque */
|
|
2060
|
+
/* blue radial gradient */
|
|
2061
|
+
/* blue linear gradient */
|
|
2062
|
+
/* green radial gradient */
|
|
2063
|
+
/* yellow radial gradient */
|
|
2064
|
+
/* red radial gradient */
|
|
2065
|
+
/* gray radial gradient */
|
|
2066
|
+
/* white to gray radial gradient */
|
|
2067
|
+
/* white to gray linear gradient */
|
|
2068
|
+
/* gradient transparent */
|
|
2069
|
+
/* secondary palette */
|
|
2070
|
+
/* purple radial gradient */
|
|
2071
|
+
/* refine alias color */
|
|
2072
|
+
/* text */
|
|
2073
|
+
/* link */
|
|
2074
|
+
/* fill */
|
|
2075
|
+
/* fill element */
|
|
2076
|
+
/* fill interaction */
|
|
2077
|
+
/* stroke */
|
|
2078
|
+
/* background */
|
|
2079
|
+
/* dim */
|
|
2080
|
+
/* box shadow */
|
|
2081
|
+
/* fisheye */
|
|
2082
|
+
/* z-index */
|
|
2083
|
+
.e1cjl2b8 {
|
|
2084
|
+
border-radius: 8px;
|
|
2085
|
+
border: 1px solid rgba(211, 218, 235, 0.6);
|
|
2086
|
+
}
|
|
2087
|
+
.e1cjl2b8 .monaco-editor,
|
|
2088
|
+
.e1cjl2b8 .monaco-scrollable-element,
|
|
2089
|
+
.e1cjl2b8 .overflow-guard > .margin {
|
|
2090
|
+
border-radius: 8px;
|
|
2036
2091
|
}.pf-v5-t-light {
|
|
2037
2092
|
--pf-v5-global--Color--100: var(--pf-v5-global--Color--dark-100);
|
|
2038
2093
|
--pf-v5-global--Color--200: var(--pf-v5-global--Color--dark-200);
|
|
@@ -3391,14 +3446,11 @@
|
|
|
3391
3446
|
/* box shadow */
|
|
3392
3447
|
/* fisheye */
|
|
3393
3448
|
/* z-index */
|
|
3394
|
-
.
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
.e1cjl2b8 .monaco-scrollable-element,
|
|
3400
|
-
.e1cjl2b8 .overflow-guard > .margin {
|
|
3401
|
-
border-radius: 8px;
|
|
3449
|
+
.nrkw30o {
|
|
3450
|
+
padding: 16px 24px;
|
|
3451
|
+
width: 100%;
|
|
3452
|
+
height: 100%;
|
|
3453
|
+
min-height: 300px;
|
|
3402
3454
|
}/* // basic */
|
|
3403
3455
|
/* FishEye Color Variables and Functions */
|
|
3404
3456
|
/*
|
|
@@ -3452,9 +3504,6 @@
|
|
|
3452
3504
|
flex-direction: column;
|
|
3453
3505
|
background: linear-gradient(180deg, #fff 0%, #edf0f7 100%);
|
|
3454
3506
|
}
|
|
3455
|
-
.soapvs9 .ant-row {
|
|
3456
|
-
margin-right: 0 !important;
|
|
3457
|
-
}
|
|
3458
3507
|
|
|
3459
3508
|
.b13d603q {
|
|
3460
3509
|
color: rgba(0, 21, 64, 0.3);
|
|
@@ -3577,6 +3626,11 @@
|
|
|
3577
3626
|
|
|
3578
3627
|
.cxd8k68 {
|
|
3579
3628
|
padding: 4px 0;
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
.c1lh8loq.ant-row {
|
|
3632
|
+
row-gap: 4px;
|
|
3633
|
+
margin-right: 0 !important;
|
|
3580
3634
|
}/* // basic */
|
|
3581
3635
|
/* FishEye Color Variables and Functions */
|
|
3582
3636
|
/*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.3.14
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"module": "./dist/refine.js",
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cloudtower/eagle": "^0.34.
|
|
14
|
-
"@cloudtower/icons-react": "^0.34.
|
|
13
|
+
"@cloudtower/eagle": "^0.34.24",
|
|
14
|
+
"@cloudtower/icons-react": "^0.34.24",
|
|
15
15
|
"@patternfly/react-core": "^5.1.1",
|
|
16
16
|
"@patternfly/react-log-viewer": "^5.0.0",
|
|
17
17
|
"@refinedev/core": "^4.47.2",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"vite-plugin-commonjs": "^0.10.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@cloudtower/eagle": "^0.34.
|
|
90
|
-
"@cloudtower/icons-react": "^0.34.
|
|
89
|
+
"@cloudtower/eagle": "^0.34.24",
|
|
90
|
+
"@cloudtower/icons-react": "^0.34.24",
|
|
91
91
|
"@refinedev/core": "^4.47.2",
|
|
92
92
|
"antd": "4.5.0",
|
|
93
93
|
"i18next": "^23.2.3",
|