@vef-framework-react/integration 2.10.0
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/LICENSE +201 -0
- package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/api/crud-api.cjs +1 -0
- package/dist/cjs/api/index.cjs +1 -0
- package/dist/cjs/api/log-api.cjs +1 -0
- package/dist/cjs/api/ops-api.cjs +1 -0
- package/dist/cjs/api/query.cjs +1 -0
- package/dist/cjs/api/stats-api.cjs +1 -0
- package/dist/cjs/components/auth-params/index.cjs +1 -0
- package/dist/cjs/components/directory/index.cjs +1 -0
- package/dist/cjs/components/form-section/index.cjs +1 -0
- package/dist/cjs/components/format.cjs +1 -0
- package/dist/cjs/components/index.cjs +1 -0
- package/dist/cjs/components/json-view/index.cjs +1 -0
- package/dist/cjs/components/params-editor/index.cjs +1 -0
- package/dist/cjs/components/script-doc/completions.cjs +1 -0
- package/dist/cjs/components/script-doc/index.cjs +1 -0
- package/dist/cjs/components/status/colors.cjs +1 -0
- package/dist/cjs/components/status/index.cjs +1 -0
- package/dist/cjs/components/status/labels.cjs +1 -0
- package/dist/cjs/components/test-connection/index.cjs +1 -0
- package/dist/cjs/components/wire-trace/index.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/pages/adapter-page/columns.cjs +2 -0
- package/dist/cjs/pages/adapter-page/form.cjs +1 -0
- package/dist/cjs/pages/adapter-page/helpers.cjs +4 -0
- package/dist/cjs/pages/adapter-page/index.cjs +1 -0
- package/dist/cjs/pages/adapter-page/search.cjs +1 -0
- package/dist/cjs/pages/console-page/diagnostics.cjs +1 -0
- package/dist/cjs/pages/console-page/dry-run.cjs +1 -0
- package/dist/cjs/pages/console-page/index.cjs +1 -0
- package/dist/cjs/pages/console-page/log.cjs +1 -0
- package/dist/cjs/pages/console-page/stats.cjs +1 -0
- package/dist/cjs/pages/contract-page/columns.cjs +1 -0
- package/dist/cjs/pages/contract-page/form.cjs +1 -0
- package/dist/cjs/pages/contract-page/helpers.cjs +1 -0
- package/dist/cjs/pages/contract-page/index.cjs +1 -0
- package/dist/cjs/pages/contract-page/json-schema-completions.cjs +1 -0
- package/dist/cjs/pages/contract-page/model.cjs +1 -0
- package/dist/cjs/pages/contract-page/search.cjs +1 -0
- package/dist/cjs/pages/index.cjs +1 -0
- package/dist/cjs/pages/route-page/columns.cjs +1 -0
- package/dist/cjs/pages/route-page/form.cjs +1 -0
- package/dist/cjs/pages/route-page/helpers.cjs +1 -0
- package/dist/cjs/pages/route-page/index.cjs +1 -0
- package/dist/cjs/pages/route-page/search.cjs +1 -0
- package/dist/cjs/pages/system-page/columns.cjs +1 -0
- package/dist/cjs/pages/system-page/form.cjs +1 -0
- package/dist/cjs/pages/system-page/helpers.cjs +1 -0
- package/dist/cjs/pages/system-page/index.cjs +1 -0
- package/dist/cjs/pages/system-page/model.cjs +1 -0
- package/dist/cjs/pages/system-page/search.cjs +1 -0
- package/dist/cjs/permissions.cjs +1 -0
- package/dist/cjs/types/enums.cjs +1 -0
- package/dist/cjs/types/index.cjs +1 -0
- package/dist/es/api/crud-api.js +35 -0
- package/dist/es/api/index.js +7 -0
- package/dist/es/api/log-api.js +14 -0
- package/dist/es/api/ops-api.js +16 -0
- package/dist/es/api/query.js +13 -0
- package/dist/es/api/stats-api.js +11 -0
- package/dist/es/components/auth-params/index.js +198 -0
- package/dist/es/components/directory/index.js +35 -0
- package/dist/es/components/form-section/index.js +44 -0
- package/dist/es/components/format.js +8 -0
- package/dist/es/components/index.js +15 -0
- package/dist/es/components/json-view/index.js +15 -0
- package/dist/es/components/params-editor/index.js +61 -0
- package/dist/es/components/script-doc/completions.js +507 -0
- package/dist/es/components/script-doc/index.js +108 -0
- package/dist/es/components/status/colors.js +25 -0
- package/dist/es/components/status/index.js +35 -0
- package/dist/es/components/status/labels.js +46 -0
- package/dist/es/components/test-connection/index.js +156 -0
- package/dist/es/components/wire-trace/index.js +119 -0
- package/dist/es/index.js +27 -0
- package/dist/es/pages/adapter-page/columns.js +61 -0
- package/dist/es/pages/adapter-page/form.js +110 -0
- package/dist/es/pages/adapter-page/helpers.js +23 -0
- package/dist/es/pages/adapter-page/index.js +120 -0
- package/dist/es/pages/adapter-page/search.js +43 -0
- package/dist/es/pages/console-page/diagnostics.js +122 -0
- package/dist/es/pages/console-page/dry-run.js +327 -0
- package/dist/es/pages/console-page/index.js +64 -0
- package/dist/es/pages/console-page/log.js +219 -0
- package/dist/es/pages/console-page/stats.js +157 -0
- package/dist/es/pages/contract-page/columns.js +100 -0
- package/dist/es/pages/contract-page/form.js +123 -0
- package/dist/es/pages/contract-page/helpers.js +17 -0
- package/dist/es/pages/contract-page/index.js +116 -0
- package/dist/es/pages/contract-page/json-schema-completions.js +70 -0
- package/dist/es/pages/contract-page/model.js +47 -0
- package/dist/es/pages/contract-page/search.js +24 -0
- package/dist/es/pages/index.js +7 -0
- package/dist/es/pages/route-page/columns.js +47 -0
- package/dist/es/pages/route-page/form.js +68 -0
- package/dist/es/pages/route-page/helpers.js +20 -0
- package/dist/es/pages/route-page/index.js +119 -0
- package/dist/es/pages/route-page/search.js +27 -0
- package/dist/es/pages/system-page/columns.js +101 -0
- package/dist/es/pages/system-page/form.js +471 -0
- package/dist/es/pages/system-page/helpers.js +17 -0
- package/dist/es/pages/system-page/index.js +132 -0
- package/dist/es/pages/system-page/model.js +217 -0
- package/dist/es/pages/system-page/search.js +24 -0
- package/dist/es/permissions.js +37 -0
- package/dist/es/types/enums.js +39 -0
- package/dist/es/types/index.js +3 -0
- package/dist/types/api/crud-api.d.ts +42 -0
- package/dist/types/api/index.d.ts +5 -0
- package/dist/types/api/log-api.d.ts +10 -0
- package/dist/types/api/ops-api.d.ts +17 -0
- package/dist/types/api/query.d.ts +16 -0
- package/dist/types/api/stats-api.d.ts +12 -0
- package/dist/types/components/auth-params/index.d.ts +87 -0
- package/dist/types/components/directory/index.d.ts +30 -0
- package/dist/types/components/form-section/index.d.ts +22 -0
- package/dist/types/components/format.d.ts +4 -0
- package/dist/types/components/index.d.ts +13 -0
- package/dist/types/components/json-view/index.d.ts +9 -0
- package/dist/types/components/params-editor/index.d.ts +21 -0
- package/dist/types/components/script-doc/completions.d.ts +45 -0
- package/dist/types/components/script-doc/index.d.ts +19 -0
- package/dist/types/components/status/colors.d.ts +13 -0
- package/dist/types/components/status/index.d.ts +25 -0
- package/dist/types/components/status/labels.d.ts +17 -0
- package/dist/types/components/test-connection/index.d.ts +12 -0
- package/dist/types/components/wire-trace/index.d.ts +9 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/pages/adapter-page/columns.d.ts +7 -0
- package/dist/types/pages/adapter-page/form.d.ts +8 -0
- package/dist/types/pages/adapter-page/index.d.ts +5 -0
- package/dist/types/pages/adapter-page/props.d.ts +16 -0
- package/dist/types/pages/adapter-page/search.d.ts +4 -0
- package/dist/types/pages/console-page/diagnostics.d.ts +7 -0
- package/dist/types/pages/console-page/dry-run.d.ts +10 -0
- package/dist/types/pages/console-page/index.d.ts +21 -0
- package/dist/types/pages/console-page/log.d.ts +4 -0
- package/dist/types/pages/console-page/stats.d.ts +4 -0
- package/dist/types/pages/contract-page/columns.d.ts +3 -0
- package/dist/types/pages/contract-page/form.d.ts +8 -0
- package/dist/types/pages/contract-page/index.d.ts +5 -0
- package/dist/types/pages/contract-page/json-schema-completions.d.ts +6 -0
- package/dist/types/pages/contract-page/model.d.ts +28 -0
- package/dist/types/pages/contract-page/props.d.ts +16 -0
- package/dist/types/pages/contract-page/search.d.ts +4 -0
- package/dist/types/pages/index.d.ts +9 -0
- package/dist/types/pages/route-page/columns.d.ts +4 -0
- package/dist/types/pages/route-page/form.d.ts +4 -0
- package/dist/types/pages/route-page/index.d.ts +5 -0
- package/dist/types/pages/route-page/props.d.ts +16 -0
- package/dist/types/pages/route-page/search.d.ts +4 -0
- package/dist/types/pages/system-page/columns.d.ts +3 -0
- package/dist/types/pages/system-page/form.d.ts +9 -0
- package/dist/types/pages/system-page/index.d.ts +2 -0
- package/dist/types/pages/system-page/model.d.ts +87 -0
- package/dist/types/pages/system-page/props.d.ts +20 -0
- package/dist/types/pages/system-page/search.d.ts +4 -0
- package/dist/types/permissions.d.ts +49 -0
- package/dist/types/types/adapter.d.ts +36 -0
- package/dist/types/types/base.d.ts +14 -0
- package/dist/types/types/contract.d.ts +47 -0
- package/dist/types/types/diagnostics.d.ts +22 -0
- package/dist/types/types/enums.d.ts +43 -0
- package/dist/types/types/index.d.ts +11 -0
- package/dist/types/types/json.d.ts +10 -0
- package/dist/types/types/log.d.ts +46 -0
- package/dist/types/types/ops.d.ts +90 -0
- package/dist/types/types/route.d.ts +32 -0
- package/dist/types/types/stats.d.ts +23 -0
- package/dist/types/types/system.d.ts +117 -0
- package/package.json +66 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
|
|
2
|
+
import { useLogApi as e } from "../../api/log-api.js";
|
|
3
|
+
import { useContractDirectory as t, useSystemDirectory as n } from "../../components/directory/index.js";
|
|
4
|
+
import { formatTimestamp as r } from "../../components/format.js";
|
|
5
|
+
import { JsonView as i } from "../../components/json-view/index.js";
|
|
6
|
+
import { FAILURE_KINDS as a } from "../../types/enums.js";
|
|
7
|
+
import { DIRECTION_OPTIONS as o, FAILURE_KIND_LABELS as s } from "../../components/status/labels.js";
|
|
8
|
+
import { DirectionTag as c, FailureKindTag as l } from "../../components/status/index.js";
|
|
9
|
+
import { WireTraceTimeline as u } from "../../components/wire-trace/index.js";
|
|
10
|
+
import { useState as d } from "react";
|
|
11
|
+
import { Alert as f, Button as p, Crud as m, Descriptions as h, Drawer as g, Labeled as _, Stack as v, Text as y, globalCssVars as b, useFormContext as x } from "@vef-framework-react/components";
|
|
12
|
+
import { Fragment as S, jsx as C, jsxs as w } from "@emotion/react/jsx-runtime";
|
|
13
|
+
//#region src/pages/console-page/log.tsx
|
|
14
|
+
var T = a.map((e) => ({
|
|
15
|
+
label: s[e],
|
|
16
|
+
value: e
|
|
17
|
+
}));
|
|
18
|
+
function E() {
|
|
19
|
+
let { AppField: e } = x(), r = n(), i = t(), a = r.items.map((e) => ({
|
|
20
|
+
label: e.code,
|
|
21
|
+
value: e.code
|
|
22
|
+
})), s = i.items.map((e) => ({
|
|
23
|
+
label: e.code,
|
|
24
|
+
value: e.code
|
|
25
|
+
}));
|
|
26
|
+
return /* @__PURE__ */ w(S, { children: [
|
|
27
|
+
/* @__PURE__ */ C(e, {
|
|
28
|
+
name: "systemCode",
|
|
29
|
+
children: (e) => /* @__PURE__ */ C(e.Select, {
|
|
30
|
+
allowClear: !0,
|
|
31
|
+
noWrapper: !0,
|
|
32
|
+
showSearch: !0,
|
|
33
|
+
options: a,
|
|
34
|
+
placeholder: "系统",
|
|
35
|
+
style: { minWidth: 140 }
|
|
36
|
+
})
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ C(e, {
|
|
39
|
+
name: "contractCode",
|
|
40
|
+
children: (e) => /* @__PURE__ */ C(e.Select, {
|
|
41
|
+
allowClear: !0,
|
|
42
|
+
noWrapper: !0,
|
|
43
|
+
showSearch: !0,
|
|
44
|
+
options: s,
|
|
45
|
+
placeholder: "契约",
|
|
46
|
+
style: { minWidth: 140 }
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ C(e, {
|
|
50
|
+
name: "direction",
|
|
51
|
+
children: (e) => /* @__PURE__ */ C(e.Select, {
|
|
52
|
+
allowClear: !0,
|
|
53
|
+
noWrapper: !0,
|
|
54
|
+
options: o,
|
|
55
|
+
placeholder: "方向",
|
|
56
|
+
style: { minWidth: 100 }
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ C(e, {
|
|
60
|
+
name: "failureKind",
|
|
61
|
+
children: (e) => /* @__PURE__ */ C(e.Select, {
|
|
62
|
+
allowClear: !0,
|
|
63
|
+
noWrapper: !0,
|
|
64
|
+
options: T,
|
|
65
|
+
placeholder: "失败类型",
|
|
66
|
+
style: { minWidth: 140 }
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
var D = [
|
|
72
|
+
{
|
|
73
|
+
title: "时间",
|
|
74
|
+
dataIndex: "createdAt",
|
|
75
|
+
width: 160,
|
|
76
|
+
render: r
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: "系统",
|
|
80
|
+
dataIndex: "systemCode",
|
|
81
|
+
width: 140
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
title: "契约",
|
|
85
|
+
dataIndex: "contractCode",
|
|
86
|
+
width: 140
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: "方向",
|
|
90
|
+
dataIndex: "direction",
|
|
91
|
+
width: 80,
|
|
92
|
+
align: "center",
|
|
93
|
+
render: (e) => /* @__PURE__ */ C(c, { direction: e })
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
title: "结果",
|
|
97
|
+
dataIndex: "failureKind",
|
|
98
|
+
width: 120,
|
|
99
|
+
align: "center",
|
|
100
|
+
render: (e) => /* @__PURE__ */ C(l, { failureKind: e })
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
title: "耗时(ms)",
|
|
104
|
+
dataIndex: "durationMs",
|
|
105
|
+
width: 90,
|
|
106
|
+
align: "right"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: "请求 ID",
|
|
110
|
+
dataIndex: "requestId",
|
|
111
|
+
minWidth: 170,
|
|
112
|
+
render: (e) => /* @__PURE__ */ C(y, {
|
|
113
|
+
code: !0,
|
|
114
|
+
style: { fontSize: b.fontSizeSm },
|
|
115
|
+
children: e
|
|
116
|
+
})
|
|
117
|
+
}
|
|
118
|
+
];
|
|
119
|
+
function O(e) {
|
|
120
|
+
return [
|
|
121
|
+
{
|
|
122
|
+
key: "system",
|
|
123
|
+
label: "系统",
|
|
124
|
+
children: e.systemCode
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
key: "contract",
|
|
128
|
+
label: "契约",
|
|
129
|
+
children: e.contractCode
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
key: "direction",
|
|
133
|
+
label: "方向",
|
|
134
|
+
children: /* @__PURE__ */ C(c, { direction: e.direction })
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
key: "result",
|
|
138
|
+
label: "结果",
|
|
139
|
+
children: /* @__PURE__ */ C(l, { failureKind: e.failureKind })
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: "duration",
|
|
143
|
+
label: "耗时",
|
|
144
|
+
children: `${e.durationMs} ms`
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
key: "requestId",
|
|
148
|
+
label: "请求 ID",
|
|
149
|
+
children: /* @__PURE__ */ C(y, {
|
|
150
|
+
code: !0,
|
|
151
|
+
copyable: !0,
|
|
152
|
+
style: { fontSize: b.fontSizeSm },
|
|
153
|
+
children: e.requestId
|
|
154
|
+
})
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
key: "time",
|
|
158
|
+
label: "时间",
|
|
159
|
+
children: r(e.createdAt)
|
|
160
|
+
}
|
|
161
|
+
];
|
|
162
|
+
}
|
|
163
|
+
function k({ log: e }) {
|
|
164
|
+
return /* @__PURE__ */ w(v, {
|
|
165
|
+
gap: "middle",
|
|
166
|
+
children: [
|
|
167
|
+
/* @__PURE__ */ C(h, {
|
|
168
|
+
bordered: !0,
|
|
169
|
+
column: 2,
|
|
170
|
+
items: O(e),
|
|
171
|
+
size: "small",
|
|
172
|
+
styles: { label: { width: 90 } }
|
|
173
|
+
}),
|
|
174
|
+
e.error ? /* @__PURE__ */ C(f, {
|
|
175
|
+
showIcon: !0,
|
|
176
|
+
title: e.error,
|
|
177
|
+
type: "error"
|
|
178
|
+
}) : null,
|
|
179
|
+
/* @__PURE__ */ C(_, {
|
|
180
|
+
label: "输入",
|
|
181
|
+
children: /* @__PURE__ */ C(i, { value: e.input ?? null })
|
|
182
|
+
}),
|
|
183
|
+
/* @__PURE__ */ C(_, {
|
|
184
|
+
label: "输出",
|
|
185
|
+
children: /* @__PURE__ */ C(i, { value: e.output ?? null })
|
|
186
|
+
}),
|
|
187
|
+
e.httpTrace && e.httpTrace.length > 0 ? /* @__PURE__ */ C(_, {
|
|
188
|
+
label: "通信轨迹",
|
|
189
|
+
children: /* @__PURE__ */ C(u, { trace: e.httpTrace })
|
|
190
|
+
}) : null
|
|
191
|
+
]
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
function A() {
|
|
195
|
+
let t = e(), [n, r] = d(null);
|
|
196
|
+
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(m, {
|
|
197
|
+
basicSearch: /* @__PURE__ */ C(E, {}),
|
|
198
|
+
operationColumn: {
|
|
199
|
+
width: 80,
|
|
200
|
+
render: (e) => /* @__PURE__ */ C(p, {
|
|
201
|
+
size: "small",
|
|
202
|
+
type: "link",
|
|
203
|
+
onClick: () => r(e),
|
|
204
|
+
children: "详情"
|
|
205
|
+
})
|
|
206
|
+
},
|
|
207
|
+
queryFn: t.findPage,
|
|
208
|
+
rowKey: "id",
|
|
209
|
+
tableColumns: D
|
|
210
|
+
}), /* @__PURE__ */ C(g, {
|
|
211
|
+
open: n !== null,
|
|
212
|
+
size: 760,
|
|
213
|
+
title: "调用详情",
|
|
214
|
+
onClose: () => r(null),
|
|
215
|
+
children: n ? /* @__PURE__ */ C(k, { log: n }) : null
|
|
216
|
+
})] });
|
|
217
|
+
}
|
|
218
|
+
//#endregion
|
|
219
|
+
export { A as LogPanel };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
|
|
2
|
+
import { useStatsApi as e } from "../../api/stats-api.js";
|
|
3
|
+
import { FAILURE_KIND_COLORS as t } from "../../components/status/colors.js";
|
|
4
|
+
import { FAILURE_KINDS as n } from "../../types/enums.js";
|
|
5
|
+
import { FAILURE_KIND_LABELS as r } from "../../components/status/labels.js";
|
|
6
|
+
import { DirectionTag as i } from "../../components/status/index.js";
|
|
7
|
+
import { useQuery as a } from "@vef-framework-react/core";
|
|
8
|
+
import { Button as o, Flex as s, FlexCard as c, Icon as l, Table as u, Tag as d, Text as f, globalCssVars as p } from "@vef-framework-react/components";
|
|
9
|
+
import { jsx as m, jsxs as h } from "@emotion/react/jsx-runtime";
|
|
10
|
+
import { css as g } from "@emotion/react";
|
|
11
|
+
import { RotateCwIcon as _ } from "lucide-react";
|
|
12
|
+
//#region src/pages/console-page/stats.tsx
|
|
13
|
+
function v() {
|
|
14
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
15
|
+
}
|
|
16
|
+
var y = /*#__PURE__*/ g({
|
|
17
|
+
height: "100%",
|
|
18
|
+
display: "flex",
|
|
19
|
+
flexDirection: "column",
|
|
20
|
+
gap: p.spacingMd
|
|
21
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0YXRzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhaUIiLCJmaWxlIjoic3RhdHMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBUYWJsZUNvbHVtbiB9IGZyb20gXCJAdmVmLWZyYW1ld29yay1yZWFjdC9jb21wb25lbnRzXCI7XG5cbmltcG9ydCB0eXBlIHsgRGlyZWN0aW9uLCBGYWlsdXJlS2luZCwgSW52b2NhdGlvblN0YXRzIH0gZnJvbSBcIi4uLy4uL3R5cGVzXCI7XG5cbmltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuaW1wb3J0IHsgQnV0dG9uLCBGbGV4LCBGbGV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xuICAgICAgICAgIDxUZXh0IHN0eWxlPXt7IGZvbnRTaXplOiBnbG9iYWxDc3NWYXJzLmZvbnRTaXplU20gfX0gdHlwZT1cInNlY29uZGFyeVwiPlxuICAgICAgICAgICAg5pys6IqC54K56Ieq6L+b56iL5ZCv5Yqo5Lul5p2l55qE6L+Q6KGM5pe25b+r54Wn77yM5oyJ57O757ufIMOXIOWlkee6piDDlyDmlrnlkJHmsYfmgLvjgIJcbiAgICAgICAgICA8L1RleHQ+XG5cbiAgICAgICAgICA8QnV0dG9uIGljb249ezxJY29uIGNvbXBvbmVudD17Um90YXRlQ3dJY29ufSAvPn0gbG9hZGluZz17aXNMb2FkaW5nfSBvbkNsaWNrPXsoKSA9PiB2b2lkIHJlZmV0Y2goKX0+XG4gICAgICAgICAgICDliLfmlrBcbiAgICAgICAgICA8L0J1dHRvbj5cbiAgICAgICAgPC9GbGV4PlxuXG4gICAgICAgIDxkaXYgY3NzPXt0YWJsZUFyZWFDc3N9PlxuICAgICAgICAgIDxUYWJsZTxJbnZvY2F0aW9uU3RhdHM+XG4gICAgICAgICAgICBjb2x1bW5zPXtzdGF0c0NvbHVtbnN9XG4gICAgICAgICAgICBkYXRhU291cmNlPXtzdGF0c31cbiAgICAgICAgICAgIGxvY2FsZT17eyBlbXB0eVRleHQ6IFwi5pqC5peg6LCD55So6K6w5b2VXCIgfX1cbiAgICAgICAgICAgIHBhZ2luYXRpb249e2ZhbHNlfVxuICAgICAgICAgICAgcm93S2V5PXtyZWNvcmQgPT4gYCR7cmVjb3JkLnN5c3RlbX18JHtyZWNvcmQuY29udHJhY3R9fCR7cmVjb3JkLmRpcmVjdGlvbn1gfVxuICAgICAgICAgIC8+XG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9kaXY+XG4gICAgPC9GbGV4Q2FyZD5cbiAgKTtcbn1cbiJdfQ== */"), b = process.env.NODE_ENV === "production" ? {
|
|
22
|
+
name: "1qvekf5",
|
|
23
|
+
styles: "flex:1;min-height:0"
|
|
24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PlxuICAgICAgICAgICAgY29sdW1ucz17c3RhdHNDb2x1bW5zfVxuICAgICAgICAgICAgZGF0YVNvdXJjZT17c3RhdHN9XG4gICAgICAgICAgICBsb2NhbGU9e3sgZW1wdHlUZXh0OiBcIuaaguaXoOiwg+eUqOiusOW9lVwiIH19XG4gICAgICAgICAgICBwYWdpbmF0aW9uPXtmYWxzZX1cbiAgICAgICAgICAgIHJvd0tleT17cmVjb3JkID0+IGAke3JlY29yZC5zeXN0ZW19fCR7cmVjb3JkLmNvbnRyYWN0fXwke3JlY29yZC5kaXJlY3Rpb259YH1cbiAgICAgICAgICAvPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgIDwvRmxleENhcmQ+XG4gICk7XG59XG4iXX0= */",
|
|
27
|
+
toString: v
|
|
28
|
+
};
|
|
29
|
+
function x(e) {
|
|
30
|
+
if (!e) return /* @__PURE__ */ m(f, {
|
|
31
|
+
type: "secondary",
|
|
32
|
+
children: "-"
|
|
33
|
+
});
|
|
34
|
+
let i = n.filter((t) => e[t]);
|
|
35
|
+
return i.length === 0 ? /* @__PURE__ */ m(f, {
|
|
36
|
+
type: "secondary",
|
|
37
|
+
children: "-"
|
|
38
|
+
}) : /* @__PURE__ */ m(s, {
|
|
39
|
+
gap: 4,
|
|
40
|
+
wrap: "wrap",
|
|
41
|
+
children: i.map((n) => /* @__PURE__ */ h(d, {
|
|
42
|
+
color: t[n],
|
|
43
|
+
children: [
|
|
44
|
+
r[n],
|
|
45
|
+
":",
|
|
46
|
+
e[n]
|
|
47
|
+
]
|
|
48
|
+
}, n))
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function S(e) {
|
|
52
|
+
return e ? /* @__PURE__ */ m(f, {
|
|
53
|
+
ellipsis: { tooltip: e },
|
|
54
|
+
style: { maxWidth: 220 },
|
|
55
|
+
type: "danger",
|
|
56
|
+
children: e
|
|
57
|
+
}) : /* @__PURE__ */ m(f, {
|
|
58
|
+
type: "secondary",
|
|
59
|
+
children: "-"
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
var C = [
|
|
63
|
+
{
|
|
64
|
+
key: "sequence",
|
|
65
|
+
title: "序号",
|
|
66
|
+
width: 60,
|
|
67
|
+
align: "center",
|
|
68
|
+
render: (e, t, n) => n + 1
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
title: "系统",
|
|
72
|
+
dataIndex: "system",
|
|
73
|
+
width: 140
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
title: "契约",
|
|
77
|
+
dataIndex: "contract",
|
|
78
|
+
width: 140
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: "方向",
|
|
82
|
+
dataIndex: "direction",
|
|
83
|
+
width: 80,
|
|
84
|
+
align: "center",
|
|
85
|
+
render: (e) => /* @__PURE__ */ m(i, { direction: e })
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: "调用",
|
|
89
|
+
dataIndex: "calls",
|
|
90
|
+
width: 80,
|
|
91
|
+
align: "right"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
title: "成功",
|
|
95
|
+
dataIndex: "successes",
|
|
96
|
+
width: 80,
|
|
97
|
+
align: "right"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: "失败分布",
|
|
101
|
+
dataIndex: "failures",
|
|
102
|
+
render: x
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
title: "平均(ms)",
|
|
106
|
+
dataIndex: "avgDurationMs",
|
|
107
|
+
width: 90,
|
|
108
|
+
align: "right"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
title: "最大(ms)",
|
|
112
|
+
dataIndex: "maxDurationMs",
|
|
113
|
+
width: 90,
|
|
114
|
+
align: "right"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: "最近错误",
|
|
118
|
+
dataIndex: "lastError",
|
|
119
|
+
render: S
|
|
120
|
+
}
|
|
121
|
+
];
|
|
122
|
+
function w() {
|
|
123
|
+
let { getStats: t } = e(), { data: n, isLoading: r, refetch: i } = a({
|
|
124
|
+
queryFn: t,
|
|
125
|
+
queryKey: [t.key]
|
|
126
|
+
}), d = n?.stats ?? [];
|
|
127
|
+
return /* @__PURE__ */ m(c, { children: /* @__PURE__ */ h("div", {
|
|
128
|
+
css: y,
|
|
129
|
+
children: [/* @__PURE__ */ h(s, {
|
|
130
|
+
align: "center",
|
|
131
|
+
gap: "middle",
|
|
132
|
+
justify: "space-between",
|
|
133
|
+
wrap: "wrap",
|
|
134
|
+
children: [/* @__PURE__ */ m(f, {
|
|
135
|
+
style: { fontSize: p.fontSizeSm },
|
|
136
|
+
type: "secondary",
|
|
137
|
+
children: "本节点自进程启动以来的运行时快照,按系统 × 契约 × 方向汇总。"
|
|
138
|
+
}), /* @__PURE__ */ m(o, {
|
|
139
|
+
icon: /* @__PURE__ */ m(l, { component: _ }),
|
|
140
|
+
loading: r,
|
|
141
|
+
onClick: () => void i(),
|
|
142
|
+
children: "刷新"
|
|
143
|
+
})]
|
|
144
|
+
}), /* @__PURE__ */ m("div", {
|
|
145
|
+
css: b,
|
|
146
|
+
children: /* @__PURE__ */ m(u, {
|
|
147
|
+
columns: C,
|
|
148
|
+
dataSource: d,
|
|
149
|
+
locale: { emptyText: "暂无调用记录" },
|
|
150
|
+
pagination: !1,
|
|
151
|
+
rowKey: (e) => `${e.system}|${e.contract}|${e.direction}`
|
|
152
|
+
})
|
|
153
|
+
})]
|
|
154
|
+
}) });
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
export { w as StatsPanel };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
|
|
2
|
+
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
|
+
import { EnabledTag as t } from "../../components/status/index.js";
|
|
4
|
+
import { Flex as n, Stack as r, Tag as i, Text as a, globalCssVars as o } from "@vef-framework-react/components";
|
|
5
|
+
import { jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
6
|
+
//#region src/pages/contract-page/columns.tsx
|
|
7
|
+
function l(e, t) {
|
|
8
|
+
return /* @__PURE__ */ c(r, {
|
|
9
|
+
gap: 0,
|
|
10
|
+
children: [/* @__PURE__ */ s(a, {
|
|
11
|
+
strong: !0,
|
|
12
|
+
children: t.name
|
|
13
|
+
}), /* @__PURE__ */ s(a, {
|
|
14
|
+
style: { fontSize: o.fontSizeSm },
|
|
15
|
+
type: "secondary",
|
|
16
|
+
children: t.code
|
|
17
|
+
})]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function u(e) {
|
|
21
|
+
return e ? /* @__PURE__ */ s(a, {
|
|
22
|
+
ellipsis: { tooltip: e },
|
|
23
|
+
style: { maxWidth: 320 },
|
|
24
|
+
children: e
|
|
25
|
+
}) : /* @__PURE__ */ s(a, {
|
|
26
|
+
type: "secondary",
|
|
27
|
+
children: "-"
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function d(e) {
|
|
31
|
+
return e ? /* @__PURE__ */ s(i, {
|
|
32
|
+
color: "blue",
|
|
33
|
+
children: "已配置"
|
|
34
|
+
}) : /* @__PURE__ */ s(i, {
|
|
35
|
+
color: "default",
|
|
36
|
+
children: "未配置"
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function f(e) {
|
|
40
|
+
let t = Object.entries(e ?? {});
|
|
41
|
+
return t.length === 0 ? /* @__PURE__ */ s(a, {
|
|
42
|
+
type: "secondary",
|
|
43
|
+
children: "-"
|
|
44
|
+
}) : /* @__PURE__ */ s(n, {
|
|
45
|
+
gap: 4,
|
|
46
|
+
wrap: "wrap",
|
|
47
|
+
children: t.map(([e, t]) => /* @__PURE__ */ s(i, {
|
|
48
|
+
style: { marginInlineEnd: 0 },
|
|
49
|
+
children: t ? `${e}=${t}` : e
|
|
50
|
+
}, e))
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
var p = [
|
|
54
|
+
{
|
|
55
|
+
title: "契约",
|
|
56
|
+
dataIndex: "name",
|
|
57
|
+
width: 220,
|
|
58
|
+
render: l
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: "描述",
|
|
62
|
+
dataIndex: "description",
|
|
63
|
+
render: u
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: "标签",
|
|
67
|
+
dataIndex: "labels",
|
|
68
|
+
width: 200,
|
|
69
|
+
render: f
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
title: "输入 Schema",
|
|
73
|
+
dataIndex: "inputSchema",
|
|
74
|
+
width: 130,
|
|
75
|
+
align: "center",
|
|
76
|
+
render: d
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: "输出 Schema",
|
|
80
|
+
dataIndex: "outputSchema",
|
|
81
|
+
width: 130,
|
|
82
|
+
align: "center",
|
|
83
|
+
render: d
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
title: "状态",
|
|
87
|
+
dataIndex: "isEnabled",
|
|
88
|
+
width: 90,
|
|
89
|
+
align: "center",
|
|
90
|
+
render: (e) => /* @__PURE__ */ s(t, { enabled: e })
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: "创建时间",
|
|
94
|
+
dataIndex: "createdAt",
|
|
95
|
+
width: 160,
|
|
96
|
+
render: e
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
//#endregion
|
|
100
|
+
export { p as contractColumns };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
|
|
2
|
+
import { JSON_SCHEMA_COMPLETIONS as e } from "./json-schema-completions.js";
|
|
3
|
+
import { Grid as t, Labeled as n, LabelsEditor as r, useFormContext as i } from "@vef-framework-react/components";
|
|
4
|
+
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { z as s } from "@vef-framework-react/shared";
|
|
6
|
+
//#region src/pages/contract-page/form.tsx
|
|
7
|
+
var c = s.string("请输入契约编码").min(2, "至少 2 个字符").max(64, "最多 64 个字符"), l = s.string("请输入契约名称").max(128, "最多 128 个字符");
|
|
8
|
+
function u({ value: e }) {
|
|
9
|
+
if (!e.trim()) return;
|
|
10
|
+
let t;
|
|
11
|
+
try {
|
|
12
|
+
t = JSON.parse(e);
|
|
13
|
+
} catch {
|
|
14
|
+
return "不是合法的 JSON";
|
|
15
|
+
}
|
|
16
|
+
if (typeof t != "object" || !t || Array.isArray(t)) return "JSON Schema 必须是一个对象";
|
|
17
|
+
}
|
|
18
|
+
function d({ scene: s }) {
|
|
19
|
+
let { AppField: d } = i(), f = s === "create";
|
|
20
|
+
return /* @__PURE__ */ o(t, {
|
|
21
|
+
columnGap: "small",
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ a(t.Item, {
|
|
24
|
+
span: 12,
|
|
25
|
+
children: /* @__PURE__ */ a(d, {
|
|
26
|
+
name: "code",
|
|
27
|
+
validators: { onBlur: c },
|
|
28
|
+
children: (e) => /* @__PURE__ */ a(e.Input, {
|
|
29
|
+
required: !0,
|
|
30
|
+
disabled: !f,
|
|
31
|
+
label: "契约编码",
|
|
32
|
+
placeholder: "如 order.query"
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ a(t.Item, {
|
|
37
|
+
span: 12,
|
|
38
|
+
children: /* @__PURE__ */ a(d, {
|
|
39
|
+
name: "name",
|
|
40
|
+
validators: { onBlur: l },
|
|
41
|
+
children: (e) => /* @__PURE__ */ a(e.Input, {
|
|
42
|
+
required: !0,
|
|
43
|
+
label: "契约名称",
|
|
44
|
+
placeholder: "如 订单查询"
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ a(t.Item, {
|
|
49
|
+
span: 24,
|
|
50
|
+
children: /* @__PURE__ */ a(d, {
|
|
51
|
+
name: "description",
|
|
52
|
+
children: (e) => /* @__PURE__ */ a(e.TextArea, {
|
|
53
|
+
label: "描述",
|
|
54
|
+
placeholder: "契约的业务含义与适用场景",
|
|
55
|
+
rows: 2
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ a(t.Item, {
|
|
60
|
+
span: 24,
|
|
61
|
+
children: /* @__PURE__ */ a(d, {
|
|
62
|
+
name: "labels",
|
|
63
|
+
children: (e) => /* @__PURE__ */ a(n, {
|
|
64
|
+
hint: "供业务侧按标签圈选可动态绑定的契约;值可留空",
|
|
65
|
+
label: "标签",
|
|
66
|
+
children: /* @__PURE__ */ a(r, {
|
|
67
|
+
value: e.state.value,
|
|
68
|
+
onChange: e.handleChange
|
|
69
|
+
})
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ a(t.Item, {
|
|
74
|
+
span: {
|
|
75
|
+
xxs: 24,
|
|
76
|
+
md: 12
|
|
77
|
+
},
|
|
78
|
+
children: /* @__PURE__ */ a(d, {
|
|
79
|
+
name: "inputSchema",
|
|
80
|
+
validators: { onChange: u },
|
|
81
|
+
children: (t) => /* @__PURE__ */ a(t.CodeEditor, {
|
|
82
|
+
showLineNumbers: !0,
|
|
83
|
+
completions: e,
|
|
84
|
+
height: 260,
|
|
85
|
+
label: "输入 Schema(JSON Schema)",
|
|
86
|
+
language: "json",
|
|
87
|
+
placeholder: "留空则不校验输入"
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ a(t.Item, {
|
|
92
|
+
span: {
|
|
93
|
+
xxs: 24,
|
|
94
|
+
md: 12
|
|
95
|
+
},
|
|
96
|
+
children: /* @__PURE__ */ a(d, {
|
|
97
|
+
name: "outputSchema",
|
|
98
|
+
validators: { onChange: u },
|
|
99
|
+
children: (t) => /* @__PURE__ */ a(t.CodeEditor, {
|
|
100
|
+
showLineNumbers: !0,
|
|
101
|
+
completions: e,
|
|
102
|
+
height: 260,
|
|
103
|
+
label: "输出 Schema(JSON Schema)",
|
|
104
|
+
language: "json",
|
|
105
|
+
placeholder: "留空则不校验输出"
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ a(t.Item, {
|
|
110
|
+
span: 24,
|
|
111
|
+
children: /* @__PURE__ */ a(d, {
|
|
112
|
+
name: "isEnabled",
|
|
113
|
+
children: (e) => /* @__PURE__ */ a(e.Bool, {
|
|
114
|
+
label: "启用",
|
|
115
|
+
variant: "switch"
|
|
116
|
+
})
|
|
117
|
+
})
|
|
118
|
+
})
|
|
119
|
+
]
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { d as ContractForm };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*! @vef-framework-react/integration v2.10.0 made by Venus | 2026-07-17T09:23:01.481Z */
|
|
2
|
+
import { API_PATH as e } from "../../api/query.js";
|
|
3
|
+
import { formValuesToParams as t } from "./model.js";
|
|
4
|
+
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
5
|
+
import { useMemo as i } from "react";
|
|
6
|
+
import { createCrudKit as a } from "@vef-framework-react/components";
|
|
7
|
+
//#region src/pages/contract-page/helpers.ts
|
|
8
|
+
var { OperationButtonGroup: o, ActionButtonGroup: s } = a();
|
|
9
|
+
function c() {
|
|
10
|
+
let a = r();
|
|
11
|
+
return i(() => ({
|
|
12
|
+
create: a.createMutationFn("integration_contract_form_create", ({ post: r }) => (i) => r(e, { data: n("integration/contract", "create", t(i)) })),
|
|
13
|
+
update: a.createMutationFn("integration_contract_form_update", ({ post: r }) => (i) => r(e, { data: n("integration/contract", "update", t(i)) }))
|
|
14
|
+
}), [a]);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { s as ContractActionButtonGroup, o as ContractOperationButtonGroup, c as useContractFormMutations };
|