@dovetail-v2/refine 0.3.25-alpha.0 → 0.3.25-alpha.2
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/refine.cjs +6 -5
- package/dist/refine.js +6 -5
- package/package.json +1 -1
package/dist/refine.cjs
CHANGED
|
@@ -1258,8 +1258,8 @@ const container_port = "容器端口";
|
|
|
1258
1258
|
const add_port = "添加端口";
|
|
1259
1259
|
const required_field = "请填写{{ label }}。";
|
|
1260
1260
|
const length_limit = "{{ label }}支持的字符长度范围为 {{ minLength }}–{{ maxLength }}。";
|
|
1261
|
-
const rf1123_name_format_error = "
|
|
1262
|
-
const rf1035_name_format_error = "
|
|
1261
|
+
const rf1123_name_format_error = "仅支持小写字母、数字和连字符(-),并且必须以小写字母或数字开头和结尾。";
|
|
1262
|
+
const rf1035_name_format_error = "仅支持小写字母、数字和连字符(-),并且必须以小写字母开头,以小写字母或数字结尾。";
|
|
1263
1263
|
const dns_subdomain_name_format_error = "仅支持小写字母、数字、连字符(-)和点(.),并且必须以小写字母或数字开头和结尾。";
|
|
1264
1264
|
const name_duplicated = "名称已存在。";
|
|
1265
1265
|
const input_correct_port = "请填写有效的端口号。";
|
|
@@ -12020,7 +12020,8 @@ function K8sDropdown(props) {
|
|
|
12020
12020
|
});
|
|
12021
12021
|
const download2 = useDownloadYAML();
|
|
12022
12022
|
const openForm = useOpenForm();
|
|
12023
|
-
const isInShowPage = useResourceResult.action === "show"
|
|
12023
|
+
const isInShowPage = useResourceResult.action === "show";
|
|
12024
|
+
const isChildResource = isInShowPage && ((_b = useResourceResult.resource) == null ? void 0 : _b.name) !== resourceName;
|
|
12024
12025
|
const { data: canEditData } = core.useCan({
|
|
12025
12026
|
resource: resourceName,
|
|
12026
12027
|
action: AccessControlAuth.Edit,
|
|
@@ -12050,7 +12051,7 @@ function K8sDropdown(props) {
|
|
|
12050
12051
|
)}` : t2("dovetail.edit_yaml") })
|
|
12051
12052
|
}
|
|
12052
12053
|
),
|
|
12053
|
-
(canEditData == null ? void 0 : canEditData.can) === false || (config == null ? void 0 : config.hideEdit) ? null : /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12054
|
+
isChildResource || (canEditData == null ? void 0 : canEditData.can) === false || (config == null ? void 0 : config.hideEdit) ? null : /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12054
12055
|
eagle.Menu.Item,
|
|
12055
12056
|
{
|
|
12056
12057
|
onClick: () => openForm({
|
|
@@ -12062,7 +12063,7 @@ function K8sDropdown(props) {
|
|
|
12062
12063
|
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Icon, { src: iconsReact.EditPen16PrimaryIcon, children: t2("dovetail.edit_yaml") })
|
|
12063
12064
|
}
|
|
12064
12065
|
),
|
|
12065
|
-
/* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12066
|
+
isChildResource ? null : /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12066
12067
|
eagle.Menu.Item,
|
|
12067
12068
|
{
|
|
12068
12069
|
onClick: () => {
|
package/dist/refine.js
CHANGED
|
@@ -1239,8 +1239,8 @@ const container_port = "容器端口";
|
|
|
1239
1239
|
const add_port = "添加端口";
|
|
1240
1240
|
const required_field = "请填写{{ label }}。";
|
|
1241
1241
|
const length_limit = "{{ label }}支持的字符长度范围为 {{ minLength }}–{{ maxLength }}。";
|
|
1242
|
-
const rf1123_name_format_error = "
|
|
1243
|
-
const rf1035_name_format_error = "
|
|
1242
|
+
const rf1123_name_format_error = "仅支持小写字母、数字和连字符(-),并且必须以小写字母或数字开头和结尾。";
|
|
1243
|
+
const rf1035_name_format_error = "仅支持小写字母、数字和连字符(-),并且必须以小写字母开头,以小写字母或数字结尾。";
|
|
1244
1244
|
const dns_subdomain_name_format_error = "仅支持小写字母、数字、连字符(-)和点(.),并且必须以小写字母或数字开头和结尾。";
|
|
1245
1245
|
const name_duplicated = "名称已存在。";
|
|
1246
1246
|
const input_correct_port = "请填写有效的端口号。";
|
|
@@ -12001,7 +12001,8 @@ function K8sDropdown(props) {
|
|
|
12001
12001
|
});
|
|
12002
12002
|
const download2 = useDownloadYAML();
|
|
12003
12003
|
const openForm = useOpenForm();
|
|
12004
|
-
const isInShowPage = useResourceResult.action === "show"
|
|
12004
|
+
const isInShowPage = useResourceResult.action === "show";
|
|
12005
|
+
const isChildResource = isInShowPage && ((_b = useResourceResult.resource) == null ? void 0 : _b.name) !== resourceName;
|
|
12005
12006
|
const { data: canEditData } = useCan({
|
|
12006
12007
|
resource: resourceName,
|
|
12007
12008
|
action: AccessControlAuth.Edit,
|
|
@@ -12031,7 +12032,7 @@ function K8sDropdown(props) {
|
|
|
12031
12032
|
)}` : t2("dovetail.edit_yaml") })
|
|
12032
12033
|
}
|
|
12033
12034
|
),
|
|
12034
|
-
(canEditData == null ? void 0 : canEditData.can) === false || (config == null ? void 0 : config.hideEdit) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12035
|
+
isChildResource || (canEditData == null ? void 0 : canEditData.can) === false || (config == null ? void 0 : config.hideEdit) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12035
12036
|
Menu$1.Item,
|
|
12036
12037
|
{
|
|
12037
12038
|
onClick: () => openForm({
|
|
@@ -12043,7 +12044,7 @@ function K8sDropdown(props) {
|
|
|
12043
12044
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { src: EditPen16PrimaryIcon, children: t2("dovetail.edit_yaml") })
|
|
12044
12045
|
}
|
|
12045
12046
|
),
|
|
12046
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12047
|
+
isChildResource ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12047
12048
|
Menu$1.Item,
|
|
12048
12049
|
{
|
|
12049
12050
|
onClick: () => {
|