@dovetail-v2/refine 0.4.2-alpha.0 → 0.4.2-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/PodShell-43c7028e.cjs +216 -0
- package/dist/PodShell-76331418.js +216 -0
- package/dist/{common-84e75a63.cjs → common-1eb43414.cjs} +9 -42
- package/dist/{common-b35e289c.js → common-241b21f8.js} +17 -50
- package/dist/components/EditMetadataForm/LabelFormatPopover.d.ts +0 -1
- package/dist/components/KeyValueTableForm/FormatRulePopover.d.ts +7 -0
- package/dist/components/KeyValueTableForm/index.d.ts +3 -1
- package/dist/{index-9c194830.cjs → index-31874f77.cjs} +3 -124
- package/dist/{index-33963e6a.js → index-ab97826a.js} +5 -126
- package/dist/refine.cjs +10072 -20079
- package/dist/refine.js +9938 -19945
- package/dist/shell.cjs +3 -2
- package/dist/shell.js +3 -2
- package/dist/style.css +11 -23
- package/dist/types/resource.d.ts +15 -0
- package/package.json +33 -58
- package/dist/PodShell-1ab70e6b.js +0 -2084
- package/dist/PodShell-fdd7ac78.cjs +0 -2084
package/dist/shell.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
4
|
-
const common = require("./common-
|
|
3
|
+
const index = require("./index-31874f77.cjs");
|
|
4
|
+
const common = require("./common-1eb43414.cjs");
|
|
5
5
|
require("@cloudtower/eagle");
|
|
6
6
|
require("@xterm/addon-canvas");
|
|
7
7
|
require("@xterm/addon-fit");
|
|
@@ -9,6 +9,7 @@ require("@xterm/addon-search");
|
|
|
9
9
|
require("@xterm/addon-web-links");
|
|
10
10
|
require("@xterm/addon-webgl");
|
|
11
11
|
require("@xterm/xterm");
|
|
12
|
+
require("copy-to-clipboard");
|
|
12
13
|
require("lodash-es");
|
|
13
14
|
require("react");
|
|
14
15
|
require("@cloudtower/icons-react");
|
package/dist/shell.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S } from "./index-
|
|
2
|
-
import { S as S2 } from "./common-
|
|
1
|
+
import { S } from "./index-ab97826a.js";
|
|
2
|
+
import { S as S2 } from "./common-241b21f8.js";
|
|
3
3
|
import "@cloudtower/eagle";
|
|
4
4
|
import "@xterm/addon-canvas";
|
|
5
5
|
import "@xterm/addon-fit";
|
|
@@ -7,6 +7,7 @@ import "@xterm/addon-search";
|
|
|
7
7
|
import "@xterm/addon-web-links";
|
|
8
8
|
import "@xterm/addon-webgl";
|
|
9
9
|
import "@xterm/xterm";
|
|
10
|
+
import "copy-to-clipboard";
|
|
10
11
|
import "lodash-es";
|
|
11
12
|
import "react";
|
|
12
13
|
import "@cloudtower/icons-react";
|
package/dist/style.css
CHANGED
|
@@ -2068,47 +2068,35 @@
|
|
|
2068
2068
|
/* box shadow */
|
|
2069
2069
|
/* fisheye */
|
|
2070
2070
|
/* z-index */
|
|
2071
|
-
.
|
|
2071
|
+
.f1eyh8ow .ant-popover-inner {
|
|
2072
2072
|
border-radius: 8px;
|
|
2073
2073
|
}
|
|
2074
|
-
.
|
|
2075
|
-
padding: 12px;
|
|
2076
|
-
}
|
|
2077
|
-
.p5jt6nm .ant-popover-content > .ant-popover-arrow {
|
|
2074
|
+
.f1eyh8ow .ant-popover-content > .ant-popover-arrow {
|
|
2078
2075
|
display: none;
|
|
2079
2076
|
}
|
|
2080
|
-
.
|
|
2081
|
-
vertical-align: middle;
|
|
2082
|
-
}
|
|
2083
|
-
.p5jt6nm .rule-list {
|
|
2084
|
-
list-style: disc;
|
|
2085
|
-
list-style-position: inside;
|
|
2086
|
-
}
|
|
2087
|
-
.p5jt6nm .ant-table {
|
|
2077
|
+
.f1eyh8ow .ant-table {
|
|
2088
2078
|
font-size: 12px;
|
|
2089
2079
|
line-height: 18px;
|
|
2090
2080
|
}
|
|
2091
|
-
.
|
|
2081
|
+
.f1eyh8ow .ant-table .ant-table-container {
|
|
2092
2082
|
border: none !important;
|
|
2093
2083
|
}
|
|
2094
|
-
.
|
|
2084
|
+
.f1eyh8ow .ant-table .ant-table-thead {
|
|
2095
2085
|
font-weight: 700;
|
|
2096
2086
|
}
|
|
2097
|
-
.
|
|
2087
|
+
.f1eyh8ow .ant-table .ant-table-thead > tr > th {
|
|
2098
2088
|
background: #fff;
|
|
2099
2089
|
}
|
|
2100
|
-
.
|
|
2101
|
-
.
|
|
2090
|
+
.f1eyh8ow .ant-table thead > tr > th:last-child,
|
|
2091
|
+
.f1eyh8ow .ant-table tbody > tr > td:last-child {
|
|
2102
2092
|
border-right: none !important;
|
|
2103
2093
|
}
|
|
2104
|
-
.
|
|
2094
|
+
.f1eyh8ow .ant-table tbody > tr:last-child > td {
|
|
2105
2095
|
border-bottom: none;
|
|
2106
2096
|
}
|
|
2107
|
-
.
|
|
2097
|
+
.f1eyh8ow .ant-table .ant-table-cell {
|
|
2108
2098
|
padding: 4px 8px !important;
|
|
2109
|
-
|
|
2110
|
-
.p5jt6nm .ant-table li {
|
|
2111
|
-
text-indent: 8px;
|
|
2099
|
+
vertical-align: middle;
|
|
2112
2100
|
}/* // basic */
|
|
2113
2101
|
/* FishEye Color Variables and Functions */
|
|
2114
2102
|
/*
|
package/dist/types/resource.d.ts
CHANGED
|
@@ -149,6 +149,21 @@ export type CommonFormConfig<Model extends ResourceModel = ResourceModel> = {
|
|
|
149
149
|
from: string[];
|
|
150
150
|
to: string[];
|
|
151
151
|
}[];
|
|
152
|
+
/**
|
|
153
|
+
* 自定义数据就绪检查(编辑模式下判断初始数据是否加载完成)
|
|
154
|
+
* 默认检查 metadata.name,非标准 K8s 资源可覆盖
|
|
155
|
+
*/
|
|
156
|
+
isDataReady?: (formValues: Record<string, unknown>) => boolean;
|
|
157
|
+
/**
|
|
158
|
+
* 自定义成功 toast 消息
|
|
159
|
+
*/
|
|
160
|
+
successMessage?: string | ((action: 'create' | 'edit') => string);
|
|
161
|
+
/**
|
|
162
|
+
* 自定义切换 YAML 模式时的提示 Alert 内容
|
|
163
|
+
* 设为 false 可隐藏 Alert,设为 string/ReactNode 可替换默认文案
|
|
164
|
+
* 默认显示 dovetail.change_form_mode_alert
|
|
165
|
+
*/
|
|
166
|
+
changeModeAlert?: React.ReactNode | false;
|
|
152
167
|
};
|
|
153
168
|
export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
|
|
154
169
|
/** 资源名称,用于 API 调用和路由。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.4.2-alpha.
|
|
3
|
+
"version": "0.4.2-alpha.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -10,18 +10,44 @@
|
|
|
10
10
|
"module": "./dist/refine.js",
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@cloudtower/eagle": "^490.0.1",
|
|
14
|
+
"@cloudtower/icons-react": "^490.0.1",
|
|
15
|
+
"@patternfly/react-core": "^5.1.1",
|
|
16
|
+
"@patternfly/react-log-viewer": "^5.2.0",
|
|
17
|
+
"@refinedev/core": "^4.47.2",
|
|
18
|
+
"@refinedev/inferencer": "^4.5.20",
|
|
19
|
+
"@refinedev/react-hook-form": "^4.8.14",
|
|
20
|
+
"@xterm/addon-attach": "^0.11.0",
|
|
21
|
+
"@xterm/addon-canvas": "^0.7.0",
|
|
22
|
+
"@xterm/addon-fit": "^0.10.0",
|
|
23
|
+
"@xterm/addon-search": "^0.15.0",
|
|
24
|
+
"@xterm/addon-web-links": "^0.11.0",
|
|
25
|
+
"@xterm/addon-webgl": "^0.18.0",
|
|
26
|
+
"@xterm/xterm": "^5.5.0",
|
|
27
|
+
"antd": "4.5.0",
|
|
13
28
|
"buffer": "^6.0.3",
|
|
14
29
|
"copy-to-clipboard": "^3.3.3",
|
|
30
|
+
"dayjs": "^1.11.10",
|
|
31
|
+
"i18next": "^23.2.3",
|
|
32
|
+
"js-yaml": "^4.1.0",
|
|
33
|
+
"k8s-api-provider": "^0.0.36",
|
|
34
|
+
"ky": "^0.33.3",
|
|
35
|
+
"lodash-es": "^4.17.21",
|
|
15
36
|
"mitt": "^3.0.1",
|
|
37
|
+
"monaco-editor": "^0.33.0",
|
|
38
|
+
"monaco-yaml": "^4.0.4",
|
|
16
39
|
"qs": "6.11.2",
|
|
17
|
-
"
|
|
40
|
+
"react": "^16.12.0",
|
|
41
|
+
"react-dom": "^16.12.0",
|
|
42
|
+
"react-hook-form": "^7.50.1",
|
|
43
|
+
"react-router-dom": "^5.1.2",
|
|
44
|
+
"sunflower-antd": "^1.0.0-beta.3",
|
|
45
|
+
"usehooks-ts": "^2.9.1"
|
|
18
46
|
},
|
|
19
47
|
"devDependencies": {
|
|
20
48
|
"@babel/core": "^7.4.0",
|
|
21
49
|
"@babel/preset-env": "^7.1.6",
|
|
22
50
|
"@babel/preset-typescript": "^7.10.4",
|
|
23
|
-
"@cloudtower/eagle": "^490.0.1",
|
|
24
|
-
"@cloudtower/icons-react": "^490.0.1",
|
|
25
51
|
"@kubernetes/client-node": "^0.20.0",
|
|
26
52
|
"@linaria/babel-preset": "^4.5.4",
|
|
27
53
|
"@linaria/core": "^4.5.4",
|
|
@@ -29,13 +55,8 @@
|
|
|
29
55
|
"@linaria/react": "^4.5.4",
|
|
30
56
|
"@linaria/utils": "^4.5.3",
|
|
31
57
|
"@linaria/vite": "^4.5.4",
|
|
32
|
-
"@patternfly/react-core": "^5.1.1",
|
|
33
|
-
"@patternfly/react-log-viewer": "^5.2.0",
|
|
34
58
|
"@playwright/test": "^1.39.0",
|
|
35
59
|
"@refinedev/cli": "^2.9.0",
|
|
36
|
-
"@refinedev/core": "^4.47.2",
|
|
37
|
-
"@refinedev/inferencer": "^4.5.20",
|
|
38
|
-
"@refinedev/react-hook-form": "^4.8.14",
|
|
39
60
|
"@rollup/pluginutils": "^4.2.1",
|
|
40
61
|
"@tanstack/react-query": "^4.35.3",
|
|
41
62
|
"@testing-library/react-hooks": "7",
|
|
@@ -54,45 +75,19 @@
|
|
|
54
75
|
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
55
76
|
"@typescript-eslint/parser": "^6.7.5",
|
|
56
77
|
"@vitejs/plugin-react": "^4.0.0",
|
|
57
|
-
"@xterm/addon-attach": "^0.11.0",
|
|
58
|
-
"@xterm/addon-canvas": "^0.7.0",
|
|
59
|
-
"@xterm/addon-fit": "^0.10.0",
|
|
60
|
-
"@xterm/addon-search": "^0.15.0",
|
|
61
|
-
"@xterm/addon-web-links": "^0.11.0",
|
|
62
|
-
"@xterm/addon-webgl": "^0.18.0",
|
|
63
|
-
"@xterm/xterm": "^5.5.0",
|
|
64
|
-
"antd": "4.5.0",
|
|
65
78
|
"body-parser": "^1.20.2",
|
|
66
|
-
"buffer": "^6.0.3",
|
|
67
|
-
"copy-to-clipboard": "^3.3.3",
|
|
68
|
-
"dayjs": "^1.11.10",
|
|
69
79
|
"eslint": "^8.38.0",
|
|
80
|
+
"history": "^4.10.1",
|
|
70
81
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
71
82
|
"eslint-plugin-react-refresh": "^0.3.4",
|
|
72
|
-
"history": "^4.10.1",
|
|
73
|
-
"i18next": "^23.2.3",
|
|
74
83
|
"jest": "^29",
|
|
75
|
-
"jest-environment-jsdom": "^30.0.0",
|
|
76
|
-
"js-yaml": "^4.1.0",
|
|
77
84
|
"json-schema": "^0.4.0",
|
|
78
|
-
"
|
|
85
|
+
"jest-environment-jsdom": "^30.0.0",
|
|
79
86
|
"kubernetes-types": "^1.26.0",
|
|
80
|
-
"ky": "^0.33.3",
|
|
81
87
|
"lodash": "^4.17.21",
|
|
82
|
-
"lodash-es": "^4.17.21",
|
|
83
|
-
"mitt": "^3.0.1",
|
|
84
|
-
"monaco-editor": "^0.33.0",
|
|
85
|
-
"monaco-yaml": "^4.0.4",
|
|
86
88
|
"prettier": "2.8.8",
|
|
87
|
-
"qs": "6.11.2",
|
|
88
|
-
"react": "^16.12.0",
|
|
89
|
-
"react-dom": "^16.12.0",
|
|
90
|
-
"react-hook-form": "^7.50.1",
|
|
91
|
-
"react-router-dom": "^5.1.2",
|
|
92
89
|
"sass": "1.51.0",
|
|
93
|
-
"sunflower-antd": "^1.0.0-beta.3",
|
|
94
90
|
"ts-jest": "^29",
|
|
95
|
-
"usehooks-ts": "^2.9.1",
|
|
96
91
|
"vite": "^4.5.2",
|
|
97
92
|
"vite-plugin-commonjs": "^0.10.0",
|
|
98
93
|
"ws": "^8.18.2"
|
|
@@ -100,32 +95,12 @@
|
|
|
100
95
|
"peerDependencies": {
|
|
101
96
|
"@cloudtower/eagle": "^490.0.1",
|
|
102
97
|
"@cloudtower/icons-react": "^490.0.1",
|
|
103
|
-
"@patternfly/react-core": "^5.1.1",
|
|
104
|
-
"@patternfly/react-log-viewer": "^5.2.0",
|
|
105
98
|
"@refinedev/core": "^4.47.2",
|
|
106
|
-
"@refinedev/inferencer": "^4.5.20",
|
|
107
|
-
"@refinedev/react-hook-form": "^4.8.14",
|
|
108
|
-
"@xterm/addon-attach": "^0.11.0",
|
|
109
|
-
"@xterm/addon-canvas": "^0.7.0",
|
|
110
|
-
"@xterm/addon-fit": "^0.10.0",
|
|
111
|
-
"@xterm/addon-search": "^0.15.0",
|
|
112
|
-
"@xterm/addon-web-links": "^0.11.0",
|
|
113
|
-
"@xterm/addon-webgl": "^0.18.0",
|
|
114
|
-
"@xterm/xterm": "^5.5.0",
|
|
115
99
|
"antd": "4.5.0",
|
|
116
|
-
"dayjs": "^1.11.10",
|
|
117
100
|
"i18next": "^23.2.3",
|
|
118
|
-
"js-yaml": "^4.1.0",
|
|
119
|
-
"k8s-api-provider": "^0.0.36",
|
|
120
|
-
"ky": "^0.33.3",
|
|
121
|
-
"lodash-es": "^4.17.21",
|
|
122
|
-
"monaco-editor": "^0.33.0",
|
|
123
|
-
"monaco-yaml": "^4.0.4",
|
|
124
101
|
"react": "^16.12.0",
|
|
125
102
|
"react-dom": "^16.12.0",
|
|
126
|
-
"react-
|
|
127
|
-
"react-router-dom": "^5.1.2",
|
|
128
|
-
"usehooks-ts": "^2.9.1"
|
|
103
|
+
"react-router-dom": "^5.1.2"
|
|
129
104
|
},
|
|
130
105
|
"scripts": {
|
|
131
106
|
"dev": "refine dev",
|