@dovetail-v2/refine 0.1.11 → 0.1.12
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/{MonacoYamlDiffEditor-10d71161.js → MonacoYamlDiffEditor-ae1a891e.js} +1 -1
- package/dist/{index-bf5bacd7.js → index-90c4694a.js} +392 -208
- package/dist/refine.js +175 -174
- package/dist/refine.umd.cjs +216 -32
- package/dist/style.css +50 -0
- package/lib/components/DropdownMenuItems/index.d.ts +1 -0
- package/lib/components/Form/useYamlForm.d.ts +1 -1
- package/lib/i18n.d.ts +6 -0
- package/lib/locales/zh-CN/index.d.ts +6 -0
- package/lib/types/resource.d.ts +1 -1
- package/lib/utils/schema-store.d.ts +13 -0
- package/package.json +3 -3
package/dist/refine.umd.cjs
CHANGED
|
@@ -1575,6 +1575,12 @@ var __publicField = (obj, key, value) => {
|
|
|
1575
1575
|
const name_format_rule_1 = "由字母、数字、连字符 (-)、下划线(_) 或点 (.) 组成";
|
|
1576
1576
|
const name_format_rule_2 = "以字母或数字开头和结尾";
|
|
1577
1577
|
const name_format_rule_3 = "不超过 63 个字符";
|
|
1578
|
+
const taint_effect_NoSchedule_tooltip_1 = "正在节点上运行的 Pod 不会被驱逐。";
|
|
1579
|
+
const taint_effect_NoSchedule_tooltip_2 = "新 Pod 不会调度到污点节点,除非有匹配的容忍度。";
|
|
1580
|
+
const taint_effect_PreferNoSchedule_tooltip_1 = "不容忍污点的 Pod 将被立即驱逐。";
|
|
1581
|
+
const taint_effect_PreferNoSchedule_tooltip_2 = "容忍污点但未设置容忍时长的 Pod 将继续运行。";
|
|
1582
|
+
const taint_effect_PreferNoSchedule_tooltip_3 = "容忍污点并设置了容忍时长的 Pod 将按指定时间运行,时间结束后被驱逐。";
|
|
1583
|
+
const taint_effect_NoExecute_tooltip_3 = "控制平面将尝试避免将不能容忍污点的 Pod 调度到节点上,但无法保证完全避免。";
|
|
1578
1584
|
const dovetail = {
|
|
1579
1585
|
copy: copy$1,
|
|
1580
1586
|
reset_arguments,
|
|
@@ -1802,7 +1808,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1802
1808
|
suffix_format_rule_3,
|
|
1803
1809
|
name_format_rule_1,
|
|
1804
1810
|
name_format_rule_2,
|
|
1805
|
-
name_format_rule_3
|
|
1811
|
+
name_format_rule_3,
|
|
1812
|
+
taint_effect_NoSchedule_tooltip_1,
|
|
1813
|
+
taint_effect_NoSchedule_tooltip_2,
|
|
1814
|
+
taint_effect_PreferNoSchedule_tooltip_1,
|
|
1815
|
+
taint_effect_PreferNoSchedule_tooltip_2,
|
|
1816
|
+
taint_effect_PreferNoSchedule_tooltip_3,
|
|
1817
|
+
taint_effect_NoExecute_tooltip_3
|
|
1806
1818
|
};
|
|
1807
1819
|
const ZH = {
|
|
1808
1820
|
dovetail
|
|
@@ -8195,6 +8207,9 @@ var __publicField = (obj, key, value) => {
|
|
|
8195
8207
|
}
|
|
8196
8208
|
// Fetch and process OpenAPI schemas
|
|
8197
8209
|
async fetch() {
|
|
8210
|
+
if (this.schemas) {
|
|
8211
|
+
return this.schemas;
|
|
8212
|
+
}
|
|
8198
8213
|
try {
|
|
8199
8214
|
const response = await fetch(
|
|
8200
8215
|
`${this.pathPrefix}${this.resourceBasePath}`
|
|
@@ -8242,6 +8257,24 @@ var __publicField = (obj, key, value) => {
|
|
|
8242
8257
|
});
|
|
8243
8258
|
}
|
|
8244
8259
|
}
|
|
8260
|
+
class SchemaStore {
|
|
8261
|
+
constructor() {
|
|
8262
|
+
__publicField(this, "openapiMap", {});
|
|
8263
|
+
}
|
|
8264
|
+
async fetchSchemas(resourceBasePath, pathPrefix) {
|
|
8265
|
+
const openapi = this.openapiMap[`${resourceBasePath}-${pathPrefix}`] || new K8sOpenAPI(resourceBasePath, pathPrefix);
|
|
8266
|
+
this.openapiMap[`${resourceBasePath}-${pathPrefix}`] = openapi;
|
|
8267
|
+
const schemas = await openapi.fetch();
|
|
8268
|
+
return schemas;
|
|
8269
|
+
}
|
|
8270
|
+
async fetchSchema(resourceBasePath, pathPrefix, kind) {
|
|
8271
|
+
const openapi = this.openapiMap[`${resourceBasePath}-${pathPrefix}`] || new K8sOpenAPI(resourceBasePath, pathPrefix);
|
|
8272
|
+
this.openapiMap[`${resourceBasePath}-${pathPrefix}`] = openapi;
|
|
8273
|
+
await openapi.fetch();
|
|
8274
|
+
return openapi.findSchema(kind);
|
|
8275
|
+
}
|
|
8276
|
+
}
|
|
8277
|
+
const schemaStore = new SchemaStore();
|
|
8245
8278
|
const ConstantsContext = React.createContext({
|
|
8246
8279
|
schemaUrlPrefix: ""
|
|
8247
8280
|
});
|
|
@@ -8260,8 +8293,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8260
8293
|
if (state2.schemasMap[apiGroup]) {
|
|
8261
8294
|
return { apiGroup, schemas: state2.schemasMap[apiGroup] };
|
|
8262
8295
|
}
|
|
8263
|
-
const
|
|
8264
|
-
const groupSchemas = await openapi.fetch();
|
|
8296
|
+
const groupSchemas = await schemaStore.fetchSchemas(apiGroup, schemaUrlPrefix);
|
|
8265
8297
|
return { apiGroup, schemas: groupSchemas || [] };
|
|
8266
8298
|
})
|
|
8267
8299
|
);
|
|
@@ -8290,20 +8322,12 @@ var __publicField = (obj, key, value) => {
|
|
|
8290
8322
|
const useResourceResult = core.useResource();
|
|
8291
8323
|
const resource = (options == null ? void 0 : options.resource) || useResourceResult.resource;
|
|
8292
8324
|
const { schemaUrlPrefix } = React.useContext(ConstantsContext);
|
|
8293
|
-
const openapi = React.useMemo(
|
|
8294
|
-
() => {
|
|
8295
|
-
var _a2;
|
|
8296
|
-
return new K8sOpenAPI((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.resourceBasePath, schemaUrlPrefix);
|
|
8297
|
-
},
|
|
8298
|
-
[(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.resourceBasePath, schemaUrlPrefix]
|
|
8299
|
-
);
|
|
8300
8325
|
const fetchSchema = React.useCallback(async () => {
|
|
8301
|
-
var _a2;
|
|
8326
|
+
var _a2, _b2;
|
|
8302
8327
|
setLoading(true);
|
|
8303
8328
|
setError(null);
|
|
8304
8329
|
try {
|
|
8305
|
-
await
|
|
8306
|
-
const schema2 = await openapi.findSchema((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.kind);
|
|
8330
|
+
const schema2 = await schemaStore.fetchSchema((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.resourceBasePath, schemaUrlPrefix, (_b2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _b2.kind);
|
|
8307
8331
|
setSchema(schema2 || null);
|
|
8308
8332
|
setError(null);
|
|
8309
8333
|
} catch (e2) {
|
|
@@ -8311,7 +8335,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8311
8335
|
} finally {
|
|
8312
8336
|
setLoading(false);
|
|
8313
8337
|
}
|
|
8314
|
-
}, [(_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.
|
|
8338
|
+
}, [(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind, (_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.resourceBasePath, schemaUrlPrefix]);
|
|
8315
8339
|
React.useEffect(() => {
|
|
8316
8340
|
if (options == null ? void 0 : options.skip)
|
|
8317
8341
|
return;
|
|
@@ -8936,11 +8960,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8936
8960
|
} = props;
|
|
8937
8961
|
const auxiliaryLineRef = React.useRef(null);
|
|
8938
8962
|
const wrapperRef = React.useRef(null);
|
|
8939
|
-
React.useMemo(() => ({
|
|
8940
|
-
current: currentPage,
|
|
8941
|
-
pageSize: defaultSize,
|
|
8942
|
-
onChange: onPageChange
|
|
8943
|
-
}), [currentPage, defaultSize, onPageChange]);
|
|
8944
8963
|
const finalColumns = React.useMemo(() => {
|
|
8945
8964
|
if (RowMenu) {
|
|
8946
8965
|
const actionColumn = {
|
|
@@ -9538,10 +9557,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9538
9557
|
distributeStorage: validators.distributeStorage(v)
|
|
9539
9558
|
});
|
|
9540
9559
|
},
|
|
9541
|
-
onBlur: () =>
|
|
9542
|
-
|
|
9543
|
-
onFocus: () => {
|
|
9544
|
-
}
|
|
9560
|
+
onBlur: () => void 0,
|
|
9561
|
+
onFocus: () => void 0
|
|
9545
9562
|
},
|
|
9546
9563
|
min: 1,
|
|
9547
9564
|
meta: {},
|
|
@@ -11563,7 +11580,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11563
11580
|
width: 120,
|
|
11564
11581
|
render(value2) {
|
|
11565
11582
|
const colorMap = {
|
|
11566
|
-
"Warning": "
|
|
11583
|
+
"Warning": "warning",
|
|
11567
11584
|
"Normal": "green"
|
|
11568
11585
|
};
|
|
11569
11586
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.StatusCapsule, { color: colorMap[value2], className: cx_default(StateTagStyle, "no-background"), children: i18n2.t(`dovetail.${value2.toLowerCase()}`) });
|
|
@@ -18612,7 +18629,6 @@ var __publicField = (obj, key, value) => {
|
|
|
18612
18629
|
const [currentItemCount, setCurrentItemCount] = React.useState(0);
|
|
18613
18630
|
const [paused, setPaused] = React.useState(false);
|
|
18614
18631
|
const [wrap, setWrap] = React.useState(false);
|
|
18615
|
-
const [linesBehind, setLinesBehind] = React.useState(0);
|
|
18616
18632
|
const logViewerRef = React.useRef(null);
|
|
18617
18633
|
const abortControllerRef = React.useRef(null);
|
|
18618
18634
|
const dataProvider = core.useDataProvider();
|
|
@@ -18626,10 +18642,6 @@ var __publicField = (obj, key, value) => {
|
|
|
18626
18642
|
if (logViewerRef && logViewerRef.current) {
|
|
18627
18643
|
logViewerRef.current.scrollToBottom();
|
|
18628
18644
|
}
|
|
18629
|
-
} else if (logs.length !== currentItemCount) {
|
|
18630
|
-
setLinesBehind(logs.length - currentItemCount);
|
|
18631
|
-
} else {
|
|
18632
|
-
setLinesBehind(0);
|
|
18633
18645
|
}
|
|
18634
18646
|
}, [paused, logs, currentItemCount]);
|
|
18635
18647
|
const onScroll = (params) => {
|
|
@@ -18748,7 +18760,6 @@ var __publicField = (obj, key, value) => {
|
|
|
18748
18760
|
setSelectedContainer(newValue);
|
|
18749
18761
|
setLogs([]);
|
|
18750
18762
|
setPaused(false);
|
|
18751
|
-
setLinesBehind(0);
|
|
18752
18763
|
},
|
|
18753
18764
|
value: selectedContainer
|
|
18754
18765
|
},
|
|
@@ -39238,8 +39249,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39238
39249
|
if (!value22)
|
|
39239
39250
|
return t2("dovetail.key_empty_text");
|
|
39240
39251
|
const {
|
|
39241
|
-
isValid
|
|
39242
|
-
errorMessage
|
|
39252
|
+
isValid
|
|
39243
39253
|
} = validateLabelKey(value22 || "");
|
|
39244
39254
|
if (!isValid)
|
|
39245
39255
|
return t2("dovetail.format_error");
|
|
@@ -39450,6 +39460,179 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39450
39460
|
}
|
|
39451
39461
|
);
|
|
39452
39462
|
}
|
|
39463
|
+
const EditNodeTaintForm_cgov7z = "";
|
|
39464
|
+
const UlStyle = "u19jcs7t";
|
|
39465
|
+
const EditNodeTaintForm = React.forwardRef(function EditNodeTaintForm2(props, ref) {
|
|
39466
|
+
const {
|
|
39467
|
+
nodeModel
|
|
39468
|
+
} = props;
|
|
39469
|
+
const {
|
|
39470
|
+
mutateAsync
|
|
39471
|
+
} = core.useUpdate();
|
|
39472
|
+
const {
|
|
39473
|
+
t: t2
|
|
39474
|
+
} = useTranslation();
|
|
39475
|
+
const defaultValue = React.useMemo(() => {
|
|
39476
|
+
var _a;
|
|
39477
|
+
return ((_a = nodeModel._rawYaml.spec) == null ? void 0 : _a.taints) || [];
|
|
39478
|
+
}, [nodeModel]);
|
|
39479
|
+
const onSubmit = React.useCallback((_value) => {
|
|
39480
|
+
const value2 = _value;
|
|
39481
|
+
const newYaml = nodeModel._globalStore.restoreItem(nodeModel);
|
|
39482
|
+
if (newYaml.spec) {
|
|
39483
|
+
newYaml.spec.taints = value2;
|
|
39484
|
+
}
|
|
39485
|
+
pruneBeforeEdit(newYaml);
|
|
39486
|
+
return mutateAsync({
|
|
39487
|
+
id: nodeModel.id,
|
|
39488
|
+
resource: nodeModel.name || "",
|
|
39489
|
+
values: newYaml,
|
|
39490
|
+
meta: {
|
|
39491
|
+
resourceBasePath: nodeModel.apiVersion,
|
|
39492
|
+
kind: nodeModel.kind
|
|
39493
|
+
},
|
|
39494
|
+
successNotification() {
|
|
39495
|
+
return {
|
|
39496
|
+
message: t2("dovetail.edit_node_taint_success_toast", {
|
|
39497
|
+
kind: nodeModel.kind,
|
|
39498
|
+
name: nodeModel.metadata.name,
|
|
39499
|
+
interpolation: {
|
|
39500
|
+
escapeValue: false
|
|
39501
|
+
}
|
|
39502
|
+
}),
|
|
39503
|
+
type: "success"
|
|
39504
|
+
};
|
|
39505
|
+
},
|
|
39506
|
+
errorNotification: false
|
|
39507
|
+
});
|
|
39508
|
+
}, [nodeModel, mutateAsync, t2]);
|
|
39509
|
+
const noScheduleTooltip = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
39510
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("b", {
|
|
39511
|
+
children: "NoSchedule"
|
|
39512
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", {
|
|
39513
|
+
className: UlStyle,
|
|
39514
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39515
|
+
children: t2("dovetail.taint_effect_NoSchedule_tooltip_1")
|
|
39516
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39517
|
+
children: t2("dovetail.taint_effect_NoSchedule_tooltip_2")
|
|
39518
|
+
})]
|
|
39519
|
+
})]
|
|
39520
|
+
});
|
|
39521
|
+
const preferNoScheduleTooltip = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
39522
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("b", {
|
|
39523
|
+
children: "PreferNoSchedule"
|
|
39524
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", {
|
|
39525
|
+
className: UlStyle,
|
|
39526
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39527
|
+
children: t2("dovetail.taint_effect_PreferNoSchedule_tooltip_1")
|
|
39528
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39529
|
+
children: t2("dovetail.taint_effect_PreferNoSchedule_tooltip_2")
|
|
39530
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39531
|
+
children: t2("dovetail.taint_effect_PreferNoSchedule_tooltip_3")
|
|
39532
|
+
})]
|
|
39533
|
+
})]
|
|
39534
|
+
});
|
|
39535
|
+
const noExecuteTooltip = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
39536
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("b", {
|
|
39537
|
+
children: "NoExecute"
|
|
39538
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("ul", {
|
|
39539
|
+
className: UlStyle,
|
|
39540
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39541
|
+
children: t2("dovetail.taint_effect_NoExecute_tooltip_3")
|
|
39542
|
+
})
|
|
39543
|
+
})]
|
|
39544
|
+
});
|
|
39545
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueTableFormForm, {
|
|
39546
|
+
ref,
|
|
39547
|
+
defaultValue,
|
|
39548
|
+
onSubmit,
|
|
39549
|
+
addButtonText: t2("dovetail.add_taint"),
|
|
39550
|
+
extraColumns: [{
|
|
39551
|
+
key: "effect",
|
|
39552
|
+
title: t2("dovetail.effect"),
|
|
39553
|
+
render: ({
|
|
39554
|
+
value: value2,
|
|
39555
|
+
onChange
|
|
39556
|
+
}) => {
|
|
39557
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Select, {
|
|
39558
|
+
input: {},
|
|
39559
|
+
value: value2,
|
|
39560
|
+
onChange,
|
|
39561
|
+
size: "small",
|
|
39562
|
+
children: eagle.getOptions([{
|
|
39563
|
+
value: "NoSchedule",
|
|
39564
|
+
children: t2(`dovetail.node_taint_${"NoSchedule"}`),
|
|
39565
|
+
suffix: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
39566
|
+
title: noScheduleTooltip,
|
|
39567
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, {
|
|
39568
|
+
src: iconsReact.InfoICircleFill16GrayIcon,
|
|
39569
|
+
hoverSrc: iconsReact.InfoICircleFill16Gray70Icon
|
|
39570
|
+
})
|
|
39571
|
+
})
|
|
39572
|
+
}, {
|
|
39573
|
+
value: "PreferNoSchedule",
|
|
39574
|
+
children: t2(`dovetail.node_taint_${"PreferNoSchedule"}`),
|
|
39575
|
+
suffix: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
39576
|
+
title: preferNoScheduleTooltip,
|
|
39577
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, {
|
|
39578
|
+
src: iconsReact.InfoICircleFill16GrayIcon,
|
|
39579
|
+
hoverSrc: iconsReact.InfoICircleFill16Gray70Icon
|
|
39580
|
+
})
|
|
39581
|
+
})
|
|
39582
|
+
}, {
|
|
39583
|
+
value: "NoExecute",
|
|
39584
|
+
children: t2(`dovetail.node_taint_${"NoExecute"}`),
|
|
39585
|
+
suffix: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
39586
|
+
title: noExecuteTooltip,
|
|
39587
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, {
|
|
39588
|
+
src: iconsReact.InfoICircleFill16GrayIcon,
|
|
39589
|
+
hoverSrc: iconsReact.InfoICircleFill16Gray70Icon
|
|
39590
|
+
})
|
|
39591
|
+
})
|
|
39592
|
+
}])
|
|
39593
|
+
});
|
|
39594
|
+
},
|
|
39595
|
+
validator: ({
|
|
39596
|
+
value: value2
|
|
39597
|
+
}) => {
|
|
39598
|
+
if (!value2)
|
|
39599
|
+
return t2("dovetail.taint_effect_empty_text");
|
|
39600
|
+
}
|
|
39601
|
+
}]
|
|
39602
|
+
});
|
|
39603
|
+
});
|
|
39604
|
+
function EditNodeTaintDropdownMenuItem(props) {
|
|
39605
|
+
const { formRef, resourceModel } = props;
|
|
39606
|
+
const { t: t2 } = useTranslation();
|
|
39607
|
+
const pushModal = eagle.usePushModal();
|
|
39608
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39609
|
+
eagle.Menu.Item,
|
|
39610
|
+
{
|
|
39611
|
+
className: "ant-dropdown-menu-item",
|
|
39612
|
+
onClick: () => {
|
|
39613
|
+
const modalProps = {
|
|
39614
|
+
formRef,
|
|
39615
|
+
title: t2("dovetail.edit_node_taint"),
|
|
39616
|
+
fullscreen: true,
|
|
39617
|
+
renderContent() {
|
|
39618
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39619
|
+
EditNodeTaintForm,
|
|
39620
|
+
{
|
|
39621
|
+
ref: formRef,
|
|
39622
|
+
nodeModel: resourceModel
|
|
39623
|
+
}
|
|
39624
|
+
);
|
|
39625
|
+
}
|
|
39626
|
+
};
|
|
39627
|
+
pushModal({
|
|
39628
|
+
component: EditFieldModal,
|
|
39629
|
+
props: modalProps
|
|
39630
|
+
});
|
|
39631
|
+
},
|
|
39632
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, { src: iconsReact.EditPen16BlueIcon, children: t2("dovetail.edit_node_taint") })
|
|
39633
|
+
}
|
|
39634
|
+
);
|
|
39635
|
+
}
|
|
39453
39636
|
const index_sazpyf = "";
|
|
39454
39637
|
const WrapperStyle = "wfg6u6g";
|
|
39455
39638
|
const InnerBar = ({
|
|
@@ -40739,6 +40922,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40739
40922
|
exports2.EditAnnotationDropdownMenuItem = EditAnnotationDropdownMenuItem;
|
|
40740
40923
|
exports2.EditButton = EditButton;
|
|
40741
40924
|
exports2.EditLabelDropdownMenuItem = EditLabelDropdownMenuItem;
|
|
40925
|
+
exports2.EditNodeTaintDropdownMenuItem = EditNodeTaintDropdownMenuItem;
|
|
40742
40926
|
exports2.ErrorContent = WidgetErrorContent;
|
|
40743
40927
|
exports2.ErrorContentType = ErrorContentType;
|
|
40744
40928
|
exports2.ErrorWrapper = ErrorWrapper;
|
package/dist/style.css
CHANGED
|
@@ -4335,6 +4335,56 @@
|
|
|
4335
4335
|
/* box shadow */
|
|
4336
4336
|
/* fisheye */
|
|
4337
4337
|
/* z-index */
|
|
4338
|
+
.u19jcs7t {
|
|
4339
|
+
list-style: disc;
|
|
4340
|
+
padding-left: 2em;
|
|
4341
|
+
}/* // basic */
|
|
4342
|
+
/* FishEye Color Variables and Functions */
|
|
4343
|
+
/*
|
|
4344
|
+
--------------------------- Primary Color ---------------------------
|
|
4345
|
+
*/
|
|
4346
|
+
/*
|
|
4347
|
+
---------------------------When necessary to add at any time---------------------------
|
|
4348
|
+
*/
|
|
4349
|
+
/* computed */
|
|
4350
|
+
/* blue */
|
|
4351
|
+
/* green */
|
|
4352
|
+
/* yellow */
|
|
4353
|
+
/* red */
|
|
4354
|
+
/* purple */
|
|
4355
|
+
/* palette global token*/
|
|
4356
|
+
/* color opaque */
|
|
4357
|
+
/* color transparent */
|
|
4358
|
+
/* blue transparent */
|
|
4359
|
+
/* green transparent */
|
|
4360
|
+
/* yellow transparent */
|
|
4361
|
+
/* red transparent */
|
|
4362
|
+
/* gray transparent */
|
|
4363
|
+
/* white transparent */
|
|
4364
|
+
/* gradient opaque */
|
|
4365
|
+
/* blue radial gradient */
|
|
4366
|
+
/* blue linear gradient */
|
|
4367
|
+
/* green radial gradient */
|
|
4368
|
+
/* yellow radial gradient */
|
|
4369
|
+
/* red radial gradient */
|
|
4370
|
+
/* gray radial gradient */
|
|
4371
|
+
/* white to gray radial gradient */
|
|
4372
|
+
/* white to gray linear gradient */
|
|
4373
|
+
/* gradient transparent */
|
|
4374
|
+
/* secondary palette */
|
|
4375
|
+
/* purple radial gradient */
|
|
4376
|
+
/* refine alias color */
|
|
4377
|
+
/* text */
|
|
4378
|
+
/* link */
|
|
4379
|
+
/* fill */
|
|
4380
|
+
/* fill element */
|
|
4381
|
+
/* fill interaction */
|
|
4382
|
+
/* stroke */
|
|
4383
|
+
/* background */
|
|
4384
|
+
/* dim */
|
|
4385
|
+
/* box shadow */
|
|
4386
|
+
/* fisheye */
|
|
4387
|
+
/* z-index */
|
|
4338
4388
|
.wfg6u6g {
|
|
4339
4389
|
display: flex;
|
|
4340
4390
|
align-items: center;
|
|
@@ -4,8 +4,8 @@ import { FormInstance, FormProps } from 'antd/lib/form';
|
|
|
4
4
|
import { JSONSchema7 } from 'json-schema';
|
|
5
5
|
import { Unstructured } from 'k8s-api-provider';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { type YamlEditorHandle, type YamlEditorProps } from 'src/components/YamlEditor';
|
|
8
7
|
import { RefineFormValidator } from 'src/components/Form/type';
|
|
8
|
+
import { type YamlEditorHandle, type YamlEditorProps } from 'src/components/YamlEditor';
|
|
9
9
|
type EditorProps = YamlEditorProps & {
|
|
10
10
|
ref: React.RefObject<YamlEditorHandle>;
|
|
11
11
|
};
|
package/lib/i18n.d.ts
CHANGED
|
@@ -405,6 +405,12 @@ export declare const resources: {
|
|
|
405
405
|
name_format_rule_1: string;
|
|
406
406
|
name_format_rule_2: string;
|
|
407
407
|
name_format_rule_3: string;
|
|
408
|
+
taint_effect_NoSchedule_tooltip_1: string;
|
|
409
|
+
taint_effect_NoSchedule_tooltip_2: string;
|
|
410
|
+
taint_effect_PreferNoSchedule_tooltip_1: string;
|
|
411
|
+
taint_effect_PreferNoSchedule_tooltip_2: string;
|
|
412
|
+
taint_effect_PreferNoSchedule_tooltip_3: string;
|
|
413
|
+
taint_effect_NoExecute_tooltip_3: string;
|
|
408
414
|
};
|
|
409
415
|
};
|
|
410
416
|
};
|
|
@@ -227,6 +227,12 @@ declare const _default: {
|
|
|
227
227
|
name_format_rule_1: string;
|
|
228
228
|
name_format_rule_2: string;
|
|
229
229
|
name_format_rule_3: string;
|
|
230
|
+
taint_effect_NoSchedule_tooltip_1: string;
|
|
231
|
+
taint_effect_NoSchedule_tooltip_2: string;
|
|
232
|
+
taint_effect_PreferNoSchedule_tooltip_1: string;
|
|
233
|
+
taint_effect_PreferNoSchedule_tooltip_2: string;
|
|
234
|
+
taint_effect_PreferNoSchedule_tooltip_3: string;
|
|
235
|
+
taint_effect_NoExecute_tooltip_3: string;
|
|
230
236
|
};
|
|
231
237
|
};
|
|
232
238
|
export default _default;
|
package/lib/types/resource.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { UseFormProps } from '@refinedev/react-hook-form';
|
|
3
3
|
import { YamlFormProps } from '../components';
|
|
4
4
|
import { RefineFormField } from '../components/Form';
|
|
5
|
-
import { ShowConfig } from '../components/ShowContent';
|
|
6
5
|
import { Column, InternalTableProps } from '../components/InternalBaseTable';
|
|
6
|
+
import { ShowConfig } from '../components/ShowContent';
|
|
7
7
|
import { ResourceModel } from '../models';
|
|
8
8
|
export declare enum RESOURCE_GROUP {
|
|
9
9
|
WORKLOAD = "WORKLOAD",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare class SchemaStore {
|
|
2
|
+
private openapiMap;
|
|
3
|
+
fetchSchemas(resourceBasePath: string, pathPrefix: string): Promise<(import("json-schema").JSONSchema7 & {
|
|
4
|
+
'x-kubernetes-group-version-kind': {
|
|
5
|
+
group: string;
|
|
6
|
+
kind: string;
|
|
7
|
+
version: string;
|
|
8
|
+
}[];
|
|
9
|
+
})[] | null>;
|
|
10
|
+
fetchSchema(resourceBasePath: string, pathPrefix: string, kind: string): Promise<import("json-schema").JSONSchema7 | undefined>;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: SchemaStore;
|
|
13
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"module": "./dist/refine.js",
|
|
11
11
|
"types": "./lib/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cloudtower/eagle": "^0.31.
|
|
14
|
-
"@cloudtower/icons-react": "^0.31.
|
|
13
|
+
"@cloudtower/eagle": "^0.31.19",
|
|
14
|
+
"@cloudtower/icons-react": "^0.31.19",
|
|
15
15
|
"@patternfly/react-core": "^5.1.1",
|
|
16
16
|
"@patternfly/react-log-viewer": "^5.0.0",
|
|
17
17
|
"@refinedev/core": "^4.47.2",
|