@dovetail-v2/refine 0.3.17 → 0.3.18
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.
|
@@ -36,8 +36,8 @@ export type InternalTableProps<Data extends {
|
|
|
36
36
|
}>;
|
|
37
37
|
empty?: string;
|
|
38
38
|
showMenuColumn?: boolean;
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
nonNsResource?: boolean;
|
|
40
|
+
customFilterBar?: React.ReactNode;
|
|
41
41
|
onClearSearchKeyword?: () => void;
|
|
42
42
|
};
|
|
43
43
|
declare function Table<Data extends {
|
package/dist/refine.cjs
CHANGED
|
@@ -10185,7 +10185,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10185
10185
|
case ServiceTypeEnum.NodePort:
|
|
10186
10186
|
if (!breakLine) {
|
|
10187
10187
|
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v).map((p) => [/* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Link, {
|
|
10188
|
-
href:
|
|
10188
|
+
href: `http://${clusterVip}:${p.nodePort}`,
|
|
10189
10189
|
target: "_blank",
|
|
10190
10190
|
className: common.cx_default(LinkStyle$2, eagle.Typo.Label.l4_regular_title),
|
|
10191
10191
|
children: `${clusterVip}:${p.nodePort}`
|
|
@@ -10204,7 +10204,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10204
10204
|
}
|
|
10205
10205
|
content = (_b = spec.ports) == null ? void 0 : _b.filter((v) => !!v).map((p) => /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
|
|
10206
10206
|
content: /* @__PURE__ */ common.jsxRuntimeExports.jsxs(eagle.Link, {
|
|
10207
|
-
href:
|
|
10207
|
+
href: `http://${clusterVip}:${p.nodePort}`,
|
|
10208
10208
|
target: "_blank",
|
|
10209
10209
|
className: common.cx_default(eagle.Typo.Label.l4_regular_title, BreakLineStyle, LinkStyle$2),
|
|
10210
10210
|
children: [clusterVip, ":", p.nodePort]
|
|
@@ -10240,7 +10240,8 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10240
10240
|
}
|
|
10241
10241
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
10242
10242
|
style: {
|
|
10243
|
-
whiteSpace: "pre-wrap"
|
|
10243
|
+
whiteSpace: "pre-wrap",
|
|
10244
|
+
color: "#0080ff"
|
|
10244
10245
|
},
|
|
10245
10246
|
children: content || "-"
|
|
10246
10247
|
});
|
|
@@ -14366,7 +14367,7 @@ const useNamespacesFilter = () => {
|
|
|
14366
14367
|
resource
|
|
14367
14368
|
} = core.useResource();
|
|
14368
14369
|
const configs = React.useContext(ConfigsContext);
|
|
14369
|
-
if ((resource == null ? void 0 : resource.name) && configs[resource == null ? void 0 : resource.name].
|
|
14370
|
+
if ((resource == null ? void 0 : resource.name) && configs[resource == null ? void 0 : resource.name].nonNsResource) {
|
|
14370
14371
|
return {
|
|
14371
14372
|
value: []
|
|
14372
14373
|
};
|
|
@@ -14572,12 +14573,12 @@ function ListPage(props) {
|
|
|
14572
14573
|
})]
|
|
14573
14574
|
}) : void 0, /* @__PURE__ */ common.jsxRuntimeExports.jsxs("div", {
|
|
14574
14575
|
className: common.cx_default(ListContentStyle, contentClassName),
|
|
14575
|
-
style: config.
|
|
14576
|
+
style: !config.customFilterBar && config.nonNsResource ? {
|
|
14576
14577
|
paddingTop: 0
|
|
14577
14578
|
} : {},
|
|
14578
|
-
children: [
|
|
14579
|
+
children: [config.customFilterBar || !config.nonNsResource && /* @__PURE__ */ common.jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
14579
14580
|
className: NamespaceFilterStyle
|
|
14580
|
-
})
|
|
14581
|
+
}), /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
14581
14582
|
className: TableStyle,
|
|
14582
14583
|
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(Table, {
|
|
14583
14584
|
tableProps: {
|
package/dist/refine.js
CHANGED
|
@@ -10166,7 +10166,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10166
10166
|
case ServiceTypeEnum.NodePort:
|
|
10167
10167
|
if (!breakLine) {
|
|
10168
10168
|
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v).map((p) => [/* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
10169
|
-
href:
|
|
10169
|
+
href: `http://${clusterVip}:${p.nodePort}`,
|
|
10170
10170
|
target: "_blank",
|
|
10171
10171
|
className: cx_default(LinkStyle$2, Typo.Label.l4_regular_title),
|
|
10172
10172
|
children: `${clusterVip}:${p.nodePort}`
|
|
@@ -10185,7 +10185,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10185
10185
|
}
|
|
10186
10186
|
content = (_b = spec.ports) == null ? void 0 : _b.filter((v) => !!v).map((p) => /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
10187
10187
|
content: /* @__PURE__ */ jsxRuntimeExports.jsxs(Link$1, {
|
|
10188
|
-
href:
|
|
10188
|
+
href: `http://${clusterVip}:${p.nodePort}`,
|
|
10189
10189
|
target: "_blank",
|
|
10190
10190
|
className: cx_default(Typo.Label.l4_regular_title, BreakLineStyle, LinkStyle$2),
|
|
10191
10191
|
children: [clusterVip, ":", p.nodePort]
|
|
@@ -10221,7 +10221,8 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10221
10221
|
}
|
|
10222
10222
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
10223
10223
|
style: {
|
|
10224
|
-
whiteSpace: "pre-wrap"
|
|
10224
|
+
whiteSpace: "pre-wrap",
|
|
10225
|
+
color: "#0080ff"
|
|
10225
10226
|
},
|
|
10226
10227
|
children: content || "-"
|
|
10227
10228
|
});
|
|
@@ -14347,7 +14348,7 @@ const useNamespacesFilter = () => {
|
|
|
14347
14348
|
resource
|
|
14348
14349
|
} = useResource();
|
|
14349
14350
|
const configs = useContext(ConfigsContext);
|
|
14350
|
-
if ((resource == null ? void 0 : resource.name) && configs[resource == null ? void 0 : resource.name].
|
|
14351
|
+
if ((resource == null ? void 0 : resource.name) && configs[resource == null ? void 0 : resource.name].nonNsResource) {
|
|
14351
14352
|
return {
|
|
14352
14353
|
value: []
|
|
14353
14354
|
};
|
|
@@ -14553,12 +14554,12 @@ function ListPage(props) {
|
|
|
14553
14554
|
})]
|
|
14554
14555
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
14555
14556
|
className: cx_default(ListContentStyle, contentClassName),
|
|
14556
|
-
style: config.
|
|
14557
|
+
style: !config.customFilterBar && config.nonNsResource ? {
|
|
14557
14558
|
paddingTop: 0
|
|
14558
14559
|
} : {},
|
|
14559
|
-
children: [
|
|
14560
|
+
children: [config.customFilterBar || !config.nonNsResource && /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
14560
14561
|
className: NamespaceFilterStyle
|
|
14561
|
-
})
|
|
14562
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
14562
14563
|
className: TableStyle,
|
|
14563
14564
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Table, {
|
|
14564
14565
|
tableProps: {
|
package/dist/types/resource.d.ts
CHANGED
|
@@ -171,10 +171,10 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
|
|
|
171
171
|
displayName?: string;
|
|
172
172
|
/** 是否隐藏列表页的工具栏。会连标题和描述一起去掉 */
|
|
173
173
|
hideListToolBar?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
|
|
174
|
+
/** 非命名空间资源,不展示默认的 NsFilter,并且禁用根据 ns 筛选的逻辑 */
|
|
175
|
+
nonNsResource?: boolean;
|
|
176
|
+
/** 自定义过滤栏 */
|
|
177
|
+
customFilterBar?: React.ReactNode;
|
|
178
178
|
/** 是否隐藏编辑功能。会隐藏 Dropdown 和详情中的编辑按钮 */
|
|
179
179
|
hideEdit?: boolean;
|
|
180
180
|
/** 是否隐藏创建功能 */
|