@vef-framework-react/integration 2.22.0 → 2.24.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/dist/cjs/api/log-api.cjs +1 -1
- package/dist/cjs/components/wire-trace/index.cjs +1 -1
- package/dist/cjs/pages/console-page/index.cjs +1 -1
- package/dist/cjs/pages/console-page/log.cjs +1 -1
- package/dist/cjs/pages/console-page/replay.cjs +1 -0
- package/dist/cjs/permissions.cjs +1 -1
- package/dist/es/api/code-set-api.js +1 -1
- package/dist/es/api/crud-api.js +1 -1
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/log-api.js +11 -5
- package/dist/es/api/ops-api.js +1 -1
- package/dist/es/api/query.js +1 -1
- package/dist/es/api/stats-api.js +1 -1
- package/dist/es/components/auth-params/index.js +1 -1
- package/dist/es/components/directory/index.js +1 -1
- package/dist/es/components/form-section/index.js +1 -1
- package/dist/es/components/format.js +1 -1
- package/dist/es/components/index.js +1 -1
- package/dist/es/components/json-view/index.js +1 -1
- package/dist/es/components/params-editor/index.js +1 -1
- package/dist/es/components/script-doc/completions.js +1 -1
- package/dist/es/components/script-doc/index.js +1 -1
- package/dist/es/components/status/colors.js +1 -1
- package/dist/es/components/status/index.js +1 -1
- package/dist/es/components/status/labels.js +1 -1
- package/dist/es/components/test-connection/index.js +1 -1
- package/dist/es/components/wire-trace/index.js +7 -2
- package/dist/es/index.js +1 -1
- package/dist/es/pages/adapter-page/columns.js +1 -1
- package/dist/es/pages/adapter-page/form.js +1 -1
- package/dist/es/pages/adapter-page/helpers.js +1 -1
- package/dist/es/pages/adapter-page/index.js +1 -1
- package/dist/es/pages/adapter-page/search.js +1 -1
- package/dist/es/pages/code-map-page/columns.js +1 -1
- package/dist/es/pages/code-map-page/entries-editor.js +1 -1
- package/dist/es/pages/code-map-page/form.js +1 -1
- package/dist/es/pages/code-map-page/helpers.js +1 -1
- package/dist/es/pages/code-map-page/index.js +1 -1
- package/dist/es/pages/code-map-page/model.js +1 -1
- package/dist/es/pages/code-map-page/search.js +1 -1
- package/dist/es/pages/console-page/diagnostics.js +1 -1
- package/dist/es/pages/console-page/dry-run.js +1 -1
- package/dist/es/pages/console-page/index.js +4 -3
- package/dist/es/pages/console-page/log.js +69 -56
- package/dist/es/pages/console-page/replay.js +140 -0
- package/dist/es/pages/console-page/stats.js +1 -1
- package/dist/es/pages/contract-page/columns.js +1 -1
- package/dist/es/pages/contract-page/form.js +1 -1
- package/dist/es/pages/contract-page/helpers.js +1 -1
- package/dist/es/pages/contract-page/index.js +1 -1
- package/dist/es/pages/contract-page/json-schema-completions.js +1 -1
- package/dist/es/pages/contract-page/model.js +1 -1
- package/dist/es/pages/contract-page/search.js +1 -1
- package/dist/es/pages/index.js +1 -1
- package/dist/es/pages/route-page/columns.js +1 -1
- package/dist/es/pages/route-page/form.js +1 -1
- package/dist/es/pages/route-page/helpers.js +1 -1
- package/dist/es/pages/route-page/index.js +1 -1
- package/dist/es/pages/route-page/search.js +1 -1
- package/dist/es/pages/system-page/columns.js +1 -1
- package/dist/es/pages/system-page/form.js +1 -1
- package/dist/es/pages/system-page/helpers.js +1 -1
- package/dist/es/pages/system-page/index.js +1 -1
- package/dist/es/pages/system-page/model.js +1 -1
- package/dist/es/pages/system-page/search.js +1 -1
- package/dist/es/permissions.js +5 -2
- package/dist/es/types/enums.js +1 -1
- package/dist/es/types/index.js +1 -1
- package/dist/types/api/log-api.d.ts +5 -3
- package/dist/types/pages/console-page/index.d.ts +1 -0
- package/dist/types/pages/console-page/log.d.ts +9 -2
- package/dist/types/pages/console-page/replay.d.ts +15 -0
- package/dist/types/permissions.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/log.d.ts +41 -7
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { useLogApi as e } from "../../api/log-api.js";
|
|
3
3
|
import { useContractDirectory as t, useSystemDirectory as n } from "../../components/directory/index.js";
|
|
4
4
|
import { formatTimestamp as r } from "../../components/format.js";
|
|
@@ -7,50 +7,51 @@ import { FAILURE_KINDS as a } from "../../types/enums.js";
|
|
|
7
7
|
import { DIRECTION_OPTIONS as o, FAILURE_KIND_LABELS as s } from "../../components/status/labels.js";
|
|
8
8
|
import { DirectionTag as c, FailureKindTag as l } from "../../components/status/index.js";
|
|
9
9
|
import { WireTraceTimeline as u } from "../../components/wire-trace/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { ReplayPanel as d } from "./replay.js";
|
|
11
|
+
import { useState as f } from "react";
|
|
12
|
+
import { Alert as p, Button as m, Crud as h, Descriptions as g, Drawer as _, Labeled as v, Stack as y, Text as b, filterOptionByLabel as x, globalCssVars as S, useFormContext as C } from "@vef-framework-react/components";
|
|
13
|
+
import { Fragment as w, jsx as T, jsxs as E } from "@emotion/react/jsx-runtime";
|
|
13
14
|
//#region src/pages/console-page/log.tsx
|
|
14
|
-
var
|
|
15
|
+
var D = a.map((e) => ({
|
|
15
16
|
label: s[e],
|
|
16
17
|
value: e
|
|
17
18
|
}));
|
|
18
|
-
function
|
|
19
|
-
let { AppField: e } =
|
|
19
|
+
function O() {
|
|
20
|
+
let { AppField: e } = C(), r = n(), i = t(), a = r.items.map((e) => ({
|
|
20
21
|
label: e.code,
|
|
21
22
|
value: e.code
|
|
22
23
|
})), s = i.items.map((e) => ({
|
|
23
24
|
label: e.code,
|
|
24
25
|
value: e.code
|
|
25
26
|
}));
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
28
|
+
/* @__PURE__ */ T(e, {
|
|
28
29
|
name: "systemCode",
|
|
29
|
-
children: (e) => /* @__PURE__ */
|
|
30
|
+
children: (e) => /* @__PURE__ */ T(e.Select, {
|
|
30
31
|
allowClear: !0,
|
|
31
32
|
noWrapper: !0,
|
|
32
33
|
showSearch: !0,
|
|
33
|
-
filterOption:
|
|
34
|
+
filterOption: x,
|
|
34
35
|
options: a,
|
|
35
36
|
placeholder: "系统",
|
|
36
37
|
style: { minWidth: 140 }
|
|
37
38
|
})
|
|
38
39
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ T(e, {
|
|
40
41
|
name: "contractCode",
|
|
41
|
-
children: (e) => /* @__PURE__ */
|
|
42
|
+
children: (e) => /* @__PURE__ */ T(e.Select, {
|
|
42
43
|
allowClear: !0,
|
|
43
44
|
noWrapper: !0,
|
|
44
45
|
showSearch: !0,
|
|
45
|
-
filterOption:
|
|
46
|
+
filterOption: x,
|
|
46
47
|
options: s,
|
|
47
48
|
placeholder: "契约",
|
|
48
49
|
style: { minWidth: 140 }
|
|
49
50
|
})
|
|
50
51
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ T(e, {
|
|
52
53
|
name: "direction",
|
|
53
|
-
children: (e) => /* @__PURE__ */
|
|
54
|
+
children: (e) => /* @__PURE__ */ T(e.Select, {
|
|
54
55
|
allowClear: !0,
|
|
55
56
|
noWrapper: !0,
|
|
56
57
|
options: o,
|
|
@@ -58,19 +59,19 @@ function D() {
|
|
|
58
59
|
style: { minWidth: 100 }
|
|
59
60
|
})
|
|
60
61
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ T(e, {
|
|
62
63
|
name: "failureKind",
|
|
63
|
-
children: (e) => /* @__PURE__ */
|
|
64
|
+
children: (e) => /* @__PURE__ */ T(e.Select, {
|
|
64
65
|
allowClear: !0,
|
|
65
66
|
noWrapper: !0,
|
|
66
|
-
options:
|
|
67
|
+
options: D,
|
|
67
68
|
placeholder: "失败类型",
|
|
68
69
|
style: { minWidth: 140 }
|
|
69
70
|
})
|
|
70
71
|
})
|
|
71
72
|
] });
|
|
72
73
|
}
|
|
73
|
-
var
|
|
74
|
+
var k = [
|
|
74
75
|
{
|
|
75
76
|
title: "时间",
|
|
76
77
|
dataIndex: "createdAt",
|
|
@@ -92,14 +93,14 @@ var O = [
|
|
|
92
93
|
dataIndex: "direction",
|
|
93
94
|
width: 80,
|
|
94
95
|
align: "center",
|
|
95
|
-
render: (e) => /* @__PURE__ */
|
|
96
|
+
render: (e) => /* @__PURE__ */ T(c, { direction: e })
|
|
96
97
|
},
|
|
97
98
|
{
|
|
98
99
|
title: "结果",
|
|
99
100
|
dataIndex: "failureKind",
|
|
100
101
|
width: 120,
|
|
101
102
|
align: "center",
|
|
102
|
-
render: (e) => /* @__PURE__ */
|
|
103
|
+
render: (e) => /* @__PURE__ */ T(l, { failureKind: e })
|
|
103
104
|
},
|
|
104
105
|
{
|
|
105
106
|
title: "耗时(ms)",
|
|
@@ -111,14 +112,14 @@ var O = [
|
|
|
111
112
|
title: "请求 ID",
|
|
112
113
|
dataIndex: "requestId",
|
|
113
114
|
minWidth: 170,
|
|
114
|
-
render: (e) => /* @__PURE__ */
|
|
115
|
+
render: (e) => /* @__PURE__ */ T(b, {
|
|
115
116
|
code: !0,
|
|
116
|
-
style: { fontSize:
|
|
117
|
+
style: { fontSize: S.fontSizeSm },
|
|
117
118
|
children: e
|
|
118
119
|
})
|
|
119
120
|
}
|
|
120
121
|
];
|
|
121
|
-
function
|
|
122
|
+
function A(e) {
|
|
122
123
|
return [
|
|
123
124
|
{
|
|
124
125
|
key: "system",
|
|
@@ -133,12 +134,12 @@ function k(e) {
|
|
|
133
134
|
{
|
|
134
135
|
key: "direction",
|
|
135
136
|
label: "方向",
|
|
136
|
-
children: /* @__PURE__ */
|
|
137
|
+
children: /* @__PURE__ */ T(c, { direction: e.direction })
|
|
137
138
|
},
|
|
138
139
|
{
|
|
139
140
|
key: "result",
|
|
140
141
|
label: "结果",
|
|
141
|
-
children: /* @__PURE__ */
|
|
142
|
+
children: /* @__PURE__ */ T(l, { failureKind: e.failureKind })
|
|
142
143
|
},
|
|
143
144
|
{
|
|
144
145
|
key: "duration",
|
|
@@ -148,10 +149,10 @@ function k(e) {
|
|
|
148
149
|
{
|
|
149
150
|
key: "requestId",
|
|
150
151
|
label: "请求 ID",
|
|
151
|
-
children: /* @__PURE__ */
|
|
152
|
+
children: /* @__PURE__ */ T(b, {
|
|
152
153
|
code: !0,
|
|
153
154
|
copyable: !0,
|
|
154
|
-
style: { fontSize:
|
|
155
|
+
style: { fontSize: S.fontSizeSm },
|
|
155
156
|
children: e.requestId
|
|
156
157
|
})
|
|
157
158
|
},
|
|
@@ -162,60 +163,72 @@ function k(e) {
|
|
|
162
163
|
}
|
|
163
164
|
];
|
|
164
165
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
166
|
+
function j({ log: t, replayPermission: n }) {
|
|
167
|
+
let r = e();
|
|
168
|
+
return /* @__PURE__ */ E(y, {
|
|
167
169
|
gap: "middle",
|
|
168
170
|
children: [
|
|
169
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ T(g, {
|
|
170
172
|
bordered: !0,
|
|
171
173
|
column: 2,
|
|
172
|
-
items:
|
|
174
|
+
items: A(t),
|
|
173
175
|
size: "small",
|
|
174
176
|
styles: { label: { width: 90 } }
|
|
175
177
|
}),
|
|
176
|
-
|
|
178
|
+
t.error ? /* @__PURE__ */ T(p, {
|
|
177
179
|
showIcon: !0,
|
|
178
|
-
title:
|
|
180
|
+
title: t.error,
|
|
179
181
|
type: "error"
|
|
180
182
|
}) : null,
|
|
181
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ T(v, {
|
|
182
184
|
label: "输入",
|
|
183
|
-
children: /* @__PURE__ */
|
|
185
|
+
children: /* @__PURE__ */ T(i, { value: t.input ?? null })
|
|
184
186
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ T(v, {
|
|
186
188
|
label: "输出",
|
|
187
|
-
children: /* @__PURE__ */
|
|
189
|
+
children: /* @__PURE__ */ T(i, { value: t.output ?? null })
|
|
188
190
|
}),
|
|
189
|
-
|
|
191
|
+
t.httpTrace && t.httpTrace.length > 0 ? /* @__PURE__ */ T(v, {
|
|
190
192
|
label: "通信轨迹",
|
|
191
|
-
children: /* @__PURE__ */
|
|
192
|
-
}) : null
|
|
193
|
+
children: /* @__PURE__ */ T(u, { trace: t.httpTrace })
|
|
194
|
+
}) : null,
|
|
195
|
+
/* @__PURE__ */ T(v, {
|
|
196
|
+
label: "重放",
|
|
197
|
+
children: /* @__PURE__ */ T(d, {
|
|
198
|
+
log: t,
|
|
199
|
+
permission: n,
|
|
200
|
+
replay: r.replay
|
|
201
|
+
})
|
|
202
|
+
})
|
|
193
203
|
]
|
|
194
204
|
});
|
|
195
205
|
}
|
|
196
|
-
function
|
|
197
|
-
let
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
-
basicSearch: /* @__PURE__ */
|
|
206
|
+
function M({ replayPermission: t }) {
|
|
207
|
+
let n = e(), [r, i] = f(null);
|
|
208
|
+
return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(h, {
|
|
209
|
+
basicSearch: /* @__PURE__ */ T(O, {}),
|
|
200
210
|
operationColumn: {
|
|
201
211
|
width: 80,
|
|
202
|
-
render: (e) => /* @__PURE__ */
|
|
212
|
+
render: (e) => /* @__PURE__ */ T(m, {
|
|
203
213
|
size: "small",
|
|
204
214
|
type: "link",
|
|
205
|
-
onClick: () =>
|
|
215
|
+
onClick: () => i(e),
|
|
206
216
|
children: "详情"
|
|
207
217
|
})
|
|
208
218
|
},
|
|
209
|
-
queryFn:
|
|
219
|
+
queryFn: n.findPage,
|
|
210
220
|
rowKey: "id",
|
|
211
|
-
tableColumns:
|
|
212
|
-
}), /* @__PURE__ */
|
|
213
|
-
open:
|
|
214
|
-
size:
|
|
221
|
+
tableColumns: k
|
|
222
|
+
}), /* @__PURE__ */ T(_, {
|
|
223
|
+
open: r !== null,
|
|
224
|
+
size: 960,
|
|
215
225
|
title: "调用详情",
|
|
216
|
-
onClose: () =>
|
|
217
|
-
children:
|
|
226
|
+
onClose: () => i(null),
|
|
227
|
+
children: r ? /* @__PURE__ */ T(j, {
|
|
228
|
+
log: r,
|
|
229
|
+
replayPermission: t
|
|
230
|
+
}, r.id) : null
|
|
218
231
|
})] });
|
|
219
232
|
}
|
|
220
233
|
//#endregion
|
|
221
|
-
export {
|
|
234
|
+
export { M as LogPanel };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
|
+
import { JsonView as e } from "../../components/json-view/index.js";
|
|
3
|
+
import { adapterScriptDoc as t } from "../../components/script-doc/completions.js";
|
|
4
|
+
import { FailureKindTag as n } from "../../components/status/index.js";
|
|
5
|
+
import { WireTraceTimeline as r } from "../../components/wire-trace/index.js";
|
|
6
|
+
import { useMutation as i } from "@vef-framework-react/core";
|
|
7
|
+
import { useState as a } from "react";
|
|
8
|
+
import { Alert as o, Button as s, Checkbox as c, CodeEditor as l, Flex as u, Grid as d, Icon as f, Labeled as p, PermissionGate as m, Popconfirm as h, Stack as g, Text as _ } from "@vef-framework-react/components";
|
|
9
|
+
import { jsx as v, jsxs as y } from "@emotion/react/jsx-runtime";
|
|
10
|
+
import { RotateCcwIcon as b } from "lucide-react";
|
|
11
|
+
//#region src/pages/console-page/replay.tsx
|
|
12
|
+
function x({ outcome: t, title: r }) {
|
|
13
|
+
return /* @__PURE__ */ y(g, {
|
|
14
|
+
gap: "small",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ y(u, {
|
|
17
|
+
align: "center",
|
|
18
|
+
gap: "small",
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ v(_, {
|
|
21
|
+
strong: !0,
|
|
22
|
+
children: r
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ v(n, { failureKind: t.failureKind }),
|
|
25
|
+
/* @__PURE__ */ v(_, {
|
|
26
|
+
type: "secondary",
|
|
27
|
+
children: `${t.durationMs} ms`
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
}),
|
|
31
|
+
t.error ? /* @__PURE__ */ v(o, {
|
|
32
|
+
showIcon: !0,
|
|
33
|
+
title: t.error,
|
|
34
|
+
type: "error"
|
|
35
|
+
}) : null,
|
|
36
|
+
/* @__PURE__ */ v(p, {
|
|
37
|
+
label: "输入",
|
|
38
|
+
children: /* @__PURE__ */ v(e, { value: t.input ?? null })
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ v(p, {
|
|
41
|
+
label: "输出",
|
|
42
|
+
children: /* @__PURE__ */ v(e, { value: t.output ?? null })
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function S({ log: e, result: t }) {
|
|
48
|
+
return /* @__PURE__ */ y(g, {
|
|
49
|
+
gap: "middle",
|
|
50
|
+
children: [
|
|
51
|
+
t.definitionChanged ? /* @__PURE__ */ v(o, {
|
|
52
|
+
showIcon: !0,
|
|
53
|
+
title: "契约、系统或适配器在这次调用之后修改过,结果差异可能来自这些修改",
|
|
54
|
+
type: "warning"
|
|
55
|
+
}) : null,
|
|
56
|
+
/* @__PURE__ */ y(d, {
|
|
57
|
+
columnGap: "medium",
|
|
58
|
+
children: [/* @__PURE__ */ v(d.Item, {
|
|
59
|
+
span: 12,
|
|
60
|
+
children: /* @__PURE__ */ v(x, {
|
|
61
|
+
outcome: e,
|
|
62
|
+
title: "原始调用"
|
|
63
|
+
})
|
|
64
|
+
}), /* @__PURE__ */ v(d.Item, {
|
|
65
|
+
span: 12,
|
|
66
|
+
children: /* @__PURE__ */ v(x, {
|
|
67
|
+
outcome: t,
|
|
68
|
+
title: "重放结果"
|
|
69
|
+
})
|
|
70
|
+
})]
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ v(p, {
|
|
73
|
+
label: "重放通信轨迹",
|
|
74
|
+
children: /* @__PURE__ */ v(r, { trace: t.httpTrace })
|
|
75
|
+
})
|
|
76
|
+
]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function C({ log: e, permission: n, replay: r }) {
|
|
80
|
+
let [d, p] = a(!1), [x, C] = a(""), { mutate: w, data: T, isPending: E } = i({ mutationFn: r });
|
|
81
|
+
if (!e.replayable) return /* @__PURE__ */ v(o, {
|
|
82
|
+
showIcon: !0,
|
|
83
|
+
title: "该调用未保留重放数据(需开启 vef.integration.log.replay)",
|
|
84
|
+
type: "info"
|
|
85
|
+
});
|
|
86
|
+
let D = e.direction === "outbound", O = () => w({
|
|
87
|
+
id: e.id,
|
|
88
|
+
script: d && x ? x : void 0
|
|
89
|
+
}), k = /* @__PURE__ */ v(s, {
|
|
90
|
+
icon: /* @__PURE__ */ v(f, { component: b }),
|
|
91
|
+
loading: E,
|
|
92
|
+
type: "primary",
|
|
93
|
+
onClick: D ? void 0 : O,
|
|
94
|
+
children: "重放"
|
|
95
|
+
});
|
|
96
|
+
return /* @__PURE__ */ y(g, {
|
|
97
|
+
gap: "middle",
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ y(u, {
|
|
100
|
+
align: "center",
|
|
101
|
+
gap: "middle",
|
|
102
|
+
wrap: "wrap",
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ v(m, {
|
|
105
|
+
requiredPermissions: n,
|
|
106
|
+
children: D ? /* @__PURE__ */ v(h, {
|
|
107
|
+
title: "出站重放会真实调用外部系统,确认继续?",
|
|
108
|
+
onConfirm: O,
|
|
109
|
+
children: k
|
|
110
|
+
}) : k
|
|
111
|
+
}),
|
|
112
|
+
/* @__PURE__ */ v(c, {
|
|
113
|
+
checked: d,
|
|
114
|
+
onChange: (e) => p(e.target.checked),
|
|
115
|
+
children: "使用临时脚本"
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ v(_, {
|
|
118
|
+
type: "secondary",
|
|
119
|
+
children: D ? "以原始输入按当前定义重新执行,不写入统计与调用日志。" : "以原始请求重新执行入站脚本,跳过验签,业务处理器以原始结果应答,不会重复执行业务。"
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
}),
|
|
123
|
+
d ? /* @__PURE__ */ v(l, {
|
|
124
|
+
showLineNumbers: !0,
|
|
125
|
+
completions: t(e.direction).entries,
|
|
126
|
+
height: 200,
|
|
127
|
+
language: "javascript",
|
|
128
|
+
placeholder: "// 留空则使用已保存的适配器脚本",
|
|
129
|
+
value: x,
|
|
130
|
+
onChange: C
|
|
131
|
+
}) : null,
|
|
132
|
+
T ? /* @__PURE__ */ v(S, {
|
|
133
|
+
log: e,
|
|
134
|
+
result: T
|
|
135
|
+
}) : null
|
|
136
|
+
]
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { C as ReplayPanel };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { useStatsApi as e } from "../../api/stats-api.js";
|
|
3
3
|
import { FAILURE_KIND_COLORS as t } from "../../components/status/colors.js";
|
|
4
4
|
import { FAILURE_KINDS as n } from "../../types/enums.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { EnabledTag as t } from "../../components/status/index.js";
|
|
4
4
|
import { Flex as n, Stack as r, Tag as i, Text as a, globalCssVars as o } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { JSON_SCHEMA_COMPLETIONS as e } from "./json-schema-completions.js";
|
|
3
3
|
import { Grid as t, Labeled as n, LabelsEditor as r, useFormContext as i } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { API_PATH as e } from "../../api/query.js";
|
|
3
3
|
import { formValuesToParams as t } from "./model.js";
|
|
4
4
|
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { useContractApi as e } from "../../api/crud-api.js";
|
|
3
3
|
import { INTEGRATION_PERMISSIONS as t } from "../../permissions.js";
|
|
4
4
|
import { contractColumns as n } from "./columns.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
//#region src/pages/contract-page/json-schema-completions.ts
|
|
3
3
|
function e(e, t, n, r) {
|
|
4
4
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
//#region src/pages/contract-page/model.ts
|
|
3
3
|
function e(e) {
|
|
4
4
|
return e ? JSON.stringify(e, null, 2) : "";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { Col as e, Labeled as t, LabelsEditor as n, Row as r, useFormContext as i } from "@vef-framework-react/components";
|
|
3
3
|
import { Fragment as a, jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/pages/contract-page/search.tsx
|
package/dist/es/pages/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { IntegrationAdapterPage as e } from "./adapter-page/index.js";
|
|
3
3
|
import { IntegrationCodeMapPage as t } from "./code-map-page/index.js";
|
|
4
4
|
import { IntegrationConsolePage as n } from "./console-page/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { EnabledTag as t } from "../../components/status/index.js";
|
|
4
4
|
import { Tag as n, Text as r } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { useContractDirectory as e, useSystemDirectory as t } from "../../components/directory/index.js";
|
|
3
3
|
import { Grid as n, useFormContext as r } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { createCrudKit as e } from "@vef-framework-react/components";
|
|
3
3
|
//#region src/pages/route-page/helpers.ts
|
|
4
4
|
var { OperationButtonGroup: t, ActionButtonGroup: n } = e();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { useRouteApi as e } from "../../api/crud-api.js";
|
|
3
3
|
import { useContractDirectory as t, useSystemDirectory as n } from "../../components/directory/index.js";
|
|
4
4
|
import { INTEGRATION_PERMISSIONS as r } from "../../permissions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { useSystemDirectory as e } from "../../components/directory/index.js";
|
|
3
3
|
import { useFormContext as t } from "@vef-framework-react/components";
|
|
4
4
|
import { Fragment as n, jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { INBOUND_AUTH_SCHEME_LABELS as t, OUTBOUND_AUTH_SCHEME_LABELS as n } from "../../components/status/labels.js";
|
|
4
4
|
import { EnabledTag as r } from "../../components/status/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { ParamsEditor as e } from "../../components/params-editor/index.js";
|
|
3
3
|
import { AuthParamsFields as t } from "../../components/auth-params/index.js";
|
|
4
4
|
import { FormSection as n } from "../../components/form-section/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { API_PATH as e } from "../../api/query.js";
|
|
3
3
|
import { systemFormToParams as t } from "./model.js";
|
|
4
4
|
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { useSystemApi as e } from "../../api/crud-api.js";
|
|
3
3
|
import { TestConnectionDrawer as t } from "../../components/test-connection/index.js";
|
|
4
4
|
import { INTEGRATION_PERMISSIONS as n } from "../../permissions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { pruneAuthParams as e } from "../../components/auth-params/index.js";
|
|
3
3
|
import { INBOUND_AUTH_SCHEMES as t, OUTBOUND_AUTH_SCHEMES as n } from "../../types/enums.js";
|
|
4
4
|
import { INBOUND_AUTH_SCHEME_LABELS as r, OUTBOUND_AUTH_SCHEME_LABELS as i } from "../../components/status/labels.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { useFormContext as e } from "@vef-framework-react/components";
|
|
3
3
|
import { Fragment as t, jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/pages/system-page/search.tsx
|
package/dist/es/permissions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
//#region src/permissions.ts
|
|
3
3
|
var e = {
|
|
4
4
|
contract: {
|
|
@@ -31,7 +31,10 @@ var e = {
|
|
|
31
31
|
update: "integration.code_map.update",
|
|
32
32
|
delete: "integration.code_map.delete"
|
|
33
33
|
},
|
|
34
|
-
log: {
|
|
34
|
+
log: {
|
|
35
|
+
query: "integration.log.query",
|
|
36
|
+
replay: "integration.log.replay"
|
|
37
|
+
},
|
|
35
38
|
ops: {
|
|
36
39
|
dryRun: "integration.ops.dry_run",
|
|
37
40
|
dryRunInbound: "integration.ops.dry_run_inbound",
|
package/dist/es/types/enums.js
CHANGED
package/dist/es/types/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @vef-framework-react/integration v2.
|
|
1
|
+
/*! @vef-framework-react/integration v2.24.0 made by Venus | 2026-09-28T10:00:55.968Z */
|
|
2
2
|
import { DATA_SOURCE_MODES as e, DIRECTIONS as t, FAILURE_KINDS as n, INBOUND_AUTH_SCHEMES as r, MASKED_SECRET as i, OUTBOUND_AUTH_SCHEMES as a, ROUTE_FINDING_KINDS as o, UNMAPPED_POLICIES as s } from "./enums.js";
|
|
3
3
|
export { e as DATA_SOURCE_MODES, t as DIRECTIONS, n as FAILURE_KINDS, r as INBOUND_AUTH_SCHEMES, i as MASKED_SECRET, a as OUTBOUND_AUTH_SCHEMES, o as ROUTE_FINDING_KINDS, s as UNMAPPED_POLICIES };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { PaginatedQueryParams } from '@vef-framework-react/components';
|
|
2
|
-
import { PaginationResult, QueryFunction } from '@vef-framework-react/core';
|
|
3
|
-
import { InvocationLog, LogSearch } from '../types';
|
|
2
|
+
import { MutationFunction, PaginationResult, QueryFunction } from '@vef-framework-react/core';
|
|
3
|
+
import { InvocationLog, LogSearch, ReplayParams, ReplayResult } from '../types';
|
|
4
4
|
/**
|
|
5
|
-
* The
|
|
5
|
+
* The invocation log resource: the page query plus replay, a mutation because
|
|
6
|
+
* it is triggered imperatively and an outbound replay's calls are real.
|
|
6
7
|
*/
|
|
7
8
|
export interface LogApi {
|
|
8
9
|
findPage: QueryFunction<PaginationResult<InvocationLog>, PaginatedQueryParams<LogSearch>>;
|
|
10
|
+
replay: MutationFunction<ReplayResult, ReplayParams>;
|
|
9
11
|
}
|
|
10
12
|
export declare function useLogApi(): LogApi;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
export interface LogPanelProps {
|
|
2
|
+
/**
|
|
3
|
+
* Permission code gating the replay action in the detail drawer.
|
|
4
|
+
*/
|
|
5
|
+
replayPermission: string;
|
|
6
|
+
}
|
|
1
7
|
/**
|
|
2
|
-
* The invocation-log browser: a filtered list with a full-capture detail
|
|
8
|
+
* The invocation-log browser: a filtered list with a full-capture detail
|
|
9
|
+
* drawer that can replay the invocation.
|
|
3
10
|
*/
|
|
4
|
-
export declare function LogPanel(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function LogPanel({ replayPermission }: LogPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MutationFunction } from '@vef-framework-react/core';
|
|
2
|
+
import { InvocationLog, ReplayParams, ReplayResult } from '../../types';
|
|
3
|
+
export interface ReplayPanelProps {
|
|
4
|
+
log: InvocationLog;
|
|
5
|
+
/**
|
|
6
|
+
* Permission code gating the replay action.
|
|
7
|
+
*/
|
|
8
|
+
permission: string;
|
|
9
|
+
replay: MutationFunction<ReplayResult, ReplayParams>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Re-runs a recorded invocation against the current definitions — optionally
|
|
13
|
+
* with an unsaved script — and compares the outcome with the original.
|
|
14
|
+
*/
|
|
15
|
+
export declare function ReplayPanel({ log, permission, replay }: ReplayPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|