@ximatai/muyun-web-app 0.26.13 → 0.26.14
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/{BusinessActivityLogView-UC4rH4Fn.js → BusinessActivityLogView-BUg5WTm-.js} +1 -1
- package/dist/BusinessLogListDrawer-BOTE_7aT.js +825 -0
- package/dist/{LoginAuditLogView-Cjrp8MKX.js → LoginAuditLogView-DBNtvmIy.js} +1 -1
- package/dist/{ModuleActionManagementView-Dkb35QXc.js → ModuleActionManagementView-Bq1VO51Y.js} +165 -165
- package/dist/{ModuleGovernanceView-Dx43QvGf.js → ModuleGovernanceView-B8u4_erd.js} +3570 -2877
- package/dist/{RequestErrorLogView-WnGvMWiF.js → RequestErrorLogView-BrtH3ptj.js} +1 -1
- package/dist/{RoleDetailWorkspaceView-DPDb_QOn.js → RoleDetailWorkspaceView-6LW3tLA1.js} +276 -276
- package/dist/{RuntimeLogView-BRl4ZDkU.js → RuntimeLogView-s3X5CdHB.js} +47 -80
- package/dist/index.css +1 -1
- package/dist/index.js +400 -400
- package/dist/{moduleGovernanceWorkspaceView-4V_UW-Bt.js → moduleGovernanceWorkspaceView-BRgJbUjJ.js} +2 -2
- package/dist/{platform-components-1cvOeHmo.js → platform-components-Dt859Hbr.js} +3449 -2676
- package/dist/platform-workbench-DfqFnlm-.js +14701 -0
- package/dist/{http-B0TC0pJB.js → sse-mGbuCAax.js} +41 -11
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +218 -8
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +230 -18
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/assistantRecordEditorPolicy.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/modulePageAssistantScope.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/modulePageAssistantSurface.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +110 -5
- package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +1 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +8 -0
- package/dist/types/platform-components/QueryValueEditor.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +8 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -2
- package/dist/types/platform-components/index.d.ts +4 -1
- package/dist/types/platform-components/querySettlementController.d.ts +5 -0
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +7 -0
- package/dist/types/platform-components/recordQueryListQueryController.d.ts +36 -0
- package/dist/types/platform-components/recordTreeQueryController.d.ts +18 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +2 -0
- package/dist/types/platform-workbench/AssistantMarkdownContent.vue.d.ts +6 -0
- package/dist/types/platform-workbench/AssistantSelectionCard.vue.d.ts +15 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +7 -2
- package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +12 -0
- package/dist/types/platform-workbench/assistantMarkdown.d.ts +1 -0
- package/dist/types/platform-workbench/index.d.ts +1 -0
- package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +3 -0
- package/dist/types/views/BusinessLogRetentionControl.vue.d.ts +7 -0
- package/dist/types/views/businessLogClient.d.ts +3 -0
- package/dist/types/views/businessLogRetentionClient.d.ts +25 -0
- package/dist/types/views/metadataGovernanceAssistantSurface.d.ts +122 -0
- package/dist/types/views/metadataModelChangeSetClient.d.ts +36 -0
- package/dist/types/views/metadataNaming.d.ts +4 -0
- package/dist/types/views/runtimeLogSse.d.ts +3 -13
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
- package/dist/types/web-contracts/assistant.d.ts +59 -0
- package/dist/types/web-contracts/index.d.ts +1 -0
- package/dist/types/web-core/assistantRuntime.d.ts +77 -0
- package/dist/types/web-core/assistantSurface.d.ts +92 -0
- package/dist/types/web-core/assistantTurnClient.d.ts +8 -0
- package/dist/types/web-core/index.d.ts +4 -0
- package/dist/types/web-core/sse.d.ts +9 -0
- package/dist/{workspaceViews-CCg6V0pr.js → workspaceViews-DijY4n32.js} +554 -554
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-BtaXVJKz.js +0 -564
- package/dist/platform-workbench-Cu14Xd9d.js +0 -10299
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import {
|
|
3
|
-
import { computed as
|
|
1
|
+
import { A as e, Dt as t, Jt as n, Lt as r, Mt as i, Tn as a, Ut as ee, gn as o, hn as te, ot as ne, vn as s } from "./platform-components-Dt859Hbr.js";
|
|
2
|
+
import { r as c, t as l } from "./sse-mGbuCAax.js";
|
|
3
|
+
import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, nextTick as v, onBeforeUnmount as y, openBlock as b, ref as x, toDisplayString as S, unref as C, watch as re, withCtx as w } from "vue";
|
|
4
4
|
//#region src/views/runtimeLogClient.ts
|
|
5
|
-
var
|
|
6
|
-
function
|
|
5
|
+
var T = "/platform.runtime_log";
|
|
6
|
+
function E(e) {
|
|
7
7
|
if (!c(e)) throw Error("当前 HTTP 客户端不支持运行日志流。");
|
|
8
8
|
return {
|
|
9
9
|
download(t) {
|
|
10
10
|
return e.stream({
|
|
11
|
-
path: `${
|
|
11
|
+
path: `${T}/files/${encodeURIComponent(t)}/download`,
|
|
12
12
|
headers: { Accept: "application/octet-stream" }
|
|
13
13
|
});
|
|
14
14
|
},
|
|
15
15
|
activeStream(t, n) {
|
|
16
16
|
return e.stream({
|
|
17
17
|
method: "POST",
|
|
18
|
-
path: `${
|
|
18
|
+
path: `${T}/active/stream`,
|
|
19
19
|
body: { tailLines: t },
|
|
20
20
|
headers: { Accept: "text/event-stream, application/json" },
|
|
21
21
|
...n ? { signal: n } : {}
|
|
@@ -25,53 +25,20 @@ function w(e) {
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/views/runtimeLogSse.ts
|
|
28
|
-
|
|
29
|
-
let t = "", n = "message", r = [];
|
|
30
|
-
function i() {
|
|
31
|
-
r.length > 0 && e({
|
|
32
|
-
event: n,
|
|
33
|
-
data: r.join("\n")
|
|
34
|
-
}), n = "message", r = [];
|
|
35
|
-
}
|
|
36
|
-
function a(e) {
|
|
37
|
-
if (e === "") {
|
|
38
|
-
i();
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (e.startsWith(":")) return;
|
|
42
|
-
let t = e.indexOf(":"), a = t >= 0 ? e.slice(0, t) : e, o = t >= 0 ? e.slice(t + 1).replace(/^ /, "") : "";
|
|
43
|
-
a === "event" ? n = o || "message" : a === "data" && r.push(o);
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
push(e) {
|
|
47
|
-
t += e;
|
|
48
|
-
let n = t.indexOf("\n");
|
|
49
|
-
for (; n >= 0;) {
|
|
50
|
-
let e = t.slice(0, n).replace(/\r$/, "");
|
|
51
|
-
t = t.slice(n + 1), a(e), n = t.indexOf("\n");
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
finish() {
|
|
55
|
-
t &&= (a(t.replace(/\r$/, "")), ""), i();
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/views/RuntimeLogView.vue?vue&type=script&setup=true&lang.ts
|
|
61
|
-
var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-actions" }, O = { key: 2 }, k = { key: 3 }, A = { class: "runtime-log-view__row-actions" }, ae = {
|
|
28
|
+
var D = l, O = { class: "runtime-log-view" }, k = { class: "runtime-log-view__header-actions" }, A = { key: 2 }, j = { key: 3 }, ie = { class: "runtime-log-view__row-actions" }, ae = {
|
|
62
29
|
key: 0,
|
|
63
30
|
class: "runtime-log-view__content"
|
|
64
|
-
}, oe = 500,
|
|
31
|
+
}, oe = 500, M = /*#__PURE__*/ s(/* @__PURE__ */ _({
|
|
65
32
|
name: "RuntimeLogView",
|
|
66
33
|
__name: "RuntimeLogView",
|
|
67
|
-
setup(
|
|
68
|
-
let c =
|
|
34
|
+
setup(s) {
|
|
35
|
+
let c = a({ moduleAlias: "platform.runtime_log" }), l = E(c.http), _ = x(), T = x(), M = x(!1), N = x(), P = x(""), F = x("closed"), I = x(), L = x(), R = x(!0), z = 0, B, V, H = 0, U = u(() => I.value ? I.value : {
|
|
69
36
|
connecting: "正在连接实时日志…",
|
|
70
37
|
live: "正在实时更新",
|
|
71
38
|
rotated: "日志文件已轮转,请重新连接。",
|
|
72
39
|
error: "实时日志连接已中断。",
|
|
73
40
|
closed: "实时日志已关闭。"
|
|
74
|
-
}[F.value]), W =
|
|
41
|
+
}[F.value]), W = u(() => [
|
|
75
42
|
"closed",
|
|
76
43
|
"error",
|
|
77
44
|
"rotated"
|
|
@@ -98,7 +65,7 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
98
65
|
width: "132px"
|
|
99
66
|
}
|
|
100
67
|
];
|
|
101
|
-
|
|
68
|
+
y(J), re(P, () => {
|
|
102
69
|
R.value && Y();
|
|
103
70
|
});
|
|
104
71
|
function K() {
|
|
@@ -117,14 +84,14 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
117
84
|
}
|
|
118
85
|
async function le(e, t) {
|
|
119
86
|
try {
|
|
120
|
-
let n = await
|
|
87
|
+
let n = await l.activeStream(oe, t.signal);
|
|
121
88
|
if (t.signal.aborted || e !== z) {
|
|
122
89
|
await n.cancel();
|
|
123
90
|
return;
|
|
124
91
|
}
|
|
125
92
|
let r = n.getReader();
|
|
126
93
|
B = r;
|
|
127
|
-
let i = new TextDecoder(), a =
|
|
94
|
+
let i = new TextDecoder(), a = D((n) => ue(n, e, t));
|
|
128
95
|
for (; !t.signal.aborted && e === z;) {
|
|
129
96
|
let { done: e, value: t } = await r.read();
|
|
130
97
|
if (e) break;
|
|
@@ -132,7 +99,7 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
132
99
|
}
|
|
133
100
|
a.push(i.decode()), a.finish(), !t.signal.aborted && e === z && F.value !== "rotated" && (F.value = "closed", I.value = "实时日志连接已结束。");
|
|
134
101
|
} catch (n) {
|
|
135
|
-
!t.signal.aborted && e === z && (F.value = "error", I.value = $(n, "实时日志连接失败,请重新连接。"),
|
|
102
|
+
!t.signal.aborted && e === z && (F.value = "error", I.value = $(n, "实时日志连接失败,请重新连接。"), i(n, {
|
|
136
103
|
source: "runtime-log-stream",
|
|
137
104
|
phase: "load"
|
|
138
105
|
}));
|
|
@@ -155,7 +122,7 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
155
122
|
}
|
|
156
123
|
case "rotated": {
|
|
157
124
|
let t = X(e.data);
|
|
158
|
-
N.value = Q(t.fileName) ?? N.value, H < 1 ? (H += 1, F.value = "connecting", I.value = "日志文件已轮转,正在重新连接最新文件…",
|
|
125
|
+
N.value = Q(t.fileName) ?? N.value, H < 1 ? (H += 1, F.value = "connecting", I.value = "日志文件已轮转,正在重新连接最新文件…", v(() => q())) : (F.value = "rotated", I.value = "日志文件再次轮转,请手动重新连接。", J());
|
|
159
126
|
return;
|
|
160
127
|
}
|
|
161
128
|
case "error": {
|
|
@@ -170,18 +137,18 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
170
137
|
B = void 0, e && e.cancel().catch(() => void 0);
|
|
171
138
|
}
|
|
172
139
|
async function de(e) {
|
|
173
|
-
if (!
|
|
174
|
-
|
|
140
|
+
if (!T.value) {
|
|
141
|
+
T.value = e.name;
|
|
175
142
|
try {
|
|
176
|
-
let t = await fe(await
|
|
143
|
+
let t = await fe(await l.download(e.name)), n = t.buffer.slice(t.byteOffset, t.byteOffset + t.byteLength), r = URL.createObjectURL(new Blob([n], { type: "text/plain;charset=utf-8" })), i = document.createElement("a");
|
|
177
144
|
i.href = r, i.download = e.name, i.click(), window.setTimeout(() => URL.revokeObjectURL(r), 6e4);
|
|
178
145
|
} catch (t) {
|
|
179
|
-
|
|
146
|
+
_.value = $(t, `下载 ${e.name} 失败,请稍后重试。`), i(t, {
|
|
180
147
|
source: "runtime-log-download",
|
|
181
148
|
phase: "load"
|
|
182
149
|
});
|
|
183
150
|
} finally {
|
|
184
|
-
|
|
151
|
+
T.value = void 0;
|
|
185
152
|
}
|
|
186
153
|
}
|
|
187
154
|
}
|
|
@@ -205,7 +172,7 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
205
172
|
e && (R.value = e.scrollTop + e.clientHeight >= e.scrollHeight - 24);
|
|
206
173
|
}
|
|
207
174
|
async function Y() {
|
|
208
|
-
await
|
|
175
|
+
await v();
|
|
209
176
|
let e = L.value;
|
|
210
177
|
e && (e.scrollTop = e.scrollHeight);
|
|
211
178
|
}
|
|
@@ -226,15 +193,15 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
226
193
|
function $(e, t) {
|
|
227
194
|
return e instanceof Error && e.message ? e.message : t;
|
|
228
195
|
}
|
|
229
|
-
return (i,
|
|
230
|
-
|
|
196
|
+
return (i, a) => (b(), p("section", O, [
|
|
197
|
+
_.value ? (b(), d(C(ee), {
|
|
231
198
|
key: 0,
|
|
232
199
|
class: "runtime-log-view__error",
|
|
233
|
-
message:
|
|
234
|
-
}, null, 8, ["message"])) :
|
|
235
|
-
|
|
200
|
+
message: _.value
|
|
201
|
+
}, null, 8, ["message"])) : f("v-if", !0),
|
|
202
|
+
g(C(e), {
|
|
236
203
|
class: "runtime-log-view__list",
|
|
237
|
-
context:
|
|
204
|
+
context: C(c),
|
|
238
205
|
title: "程序日志",
|
|
239
206
|
columns: G,
|
|
240
207
|
"row-key": "name",
|
|
@@ -251,39 +218,39 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
251
218
|
"row-actions-title": "操作",
|
|
252
219
|
"action-column-width": "176"
|
|
253
220
|
}, {
|
|
254
|
-
|
|
221
|
+
operations: w(() => [m("div", k, [g(C(o), {
|
|
255
222
|
type: "primary",
|
|
256
223
|
"icon-name": "eye",
|
|
257
224
|
onClick: K
|
|
258
225
|
}, {
|
|
259
|
-
default:
|
|
226
|
+
default: w(() => [...a[0] ||= [h(" 实时查看 ", -1)]]),
|
|
260
227
|
_: 1
|
|
261
228
|
})])]),
|
|
262
|
-
cell:
|
|
229
|
+
cell: w(({ column: e, record: n }) => [e.key === "sizeBytes" ? (b(), d(C(t), {
|
|
263
230
|
key: 0,
|
|
264
231
|
value: n.sizeBytes
|
|
265
|
-
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (
|
|
232
|
+
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (b(), d(C(r), {
|
|
266
233
|
key: 1,
|
|
267
234
|
value: n.lastModifiedAt
|
|
268
|
-
}, null, 8, ["value"])) : e.key === "active" ? (
|
|
269
|
-
rowActions:
|
|
235
|
+
}, null, 8, ["value"])) : e.key === "active" ? (b(), p("span", A, S(n.active ? "正在写入" : "已归档"), 1)) : (b(), p("span", j, S(n[e.key]), 1))]),
|
|
236
|
+
rowActions: w(({ record: e }) => [m("div", ie, [e.active === !0 ? (b(), d(C(o), {
|
|
270
237
|
key: 0,
|
|
271
238
|
type: "link",
|
|
272
239
|
size: "small",
|
|
273
240
|
"icon-name": "eye",
|
|
274
241
|
onClick: K
|
|
275
242
|
}, {
|
|
276
|
-
default:
|
|
243
|
+
default: w(() => [...a[1] ||= [h(" 实时查看 ", -1)]]),
|
|
277
244
|
_: 1
|
|
278
|
-
})) :
|
|
245
|
+
})) : f("v-if", !0), g(C(o), {
|
|
279
246
|
type: "link",
|
|
280
247
|
size: "small",
|
|
281
248
|
"icon-name": "download",
|
|
282
|
-
loading:
|
|
283
|
-
disabled: !!
|
|
249
|
+
loading: T.value === e.name,
|
|
250
|
+
disabled: !!T.value && T.value !== e.name,
|
|
284
251
|
onClick: (t) => de(e)
|
|
285
252
|
}, {
|
|
286
|
-
default:
|
|
253
|
+
default: w(() => [...a[2] ||= [h(" 下载 ", -1)]]),
|
|
287
254
|
_: 1
|
|
288
255
|
}, 8, [
|
|
289
256
|
"loading",
|
|
@@ -292,7 +259,7 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
292
259
|
])])]),
|
|
293
260
|
_: 1
|
|
294
261
|
}, 8, ["context"]),
|
|
295
|
-
|
|
262
|
+
g(C(ne), {
|
|
296
263
|
open: M.value,
|
|
297
264
|
title: N.value ? `实时日志 · ${N.value}` : "实时日志",
|
|
298
265
|
subtitle: U.value,
|
|
@@ -301,19 +268,19 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
301
268
|
dismissal: "dismissible",
|
|
302
269
|
onClose: ce
|
|
303
270
|
}, {
|
|
304
|
-
"header-actions":
|
|
271
|
+
"header-actions": w(() => [W.value ? (b(), d(C(te), {
|
|
305
272
|
key: 0,
|
|
306
273
|
emphasis: "quiet",
|
|
307
274
|
"icon-name": "reload",
|
|
308
275
|
title: "重新连接",
|
|
309
276
|
onClick: se
|
|
310
|
-
})) :
|
|
311
|
-
default:
|
|
277
|
+
})) : f("v-if", !0)]),
|
|
278
|
+
default: w(() => [m("div", {
|
|
312
279
|
ref_key: "logViewport",
|
|
313
280
|
ref: L,
|
|
314
281
|
class: "runtime-log-view__viewport",
|
|
315
282
|
onScroll: pe
|
|
316
|
-
}, [P.value ? (
|
|
283
|
+
}, [P.value ? (b(), p("pre", ae, S(P.value), 1)) : (b(), d(C(n), {
|
|
317
284
|
key: 1,
|
|
318
285
|
description: F.value === "connecting" ? "正在读取日志末尾内容…" : "暂无日志内容"
|
|
319
286
|
}, null, 8, ["description"]))], 544)]),
|
|
@@ -325,6 +292,6 @@ var E = { class: "runtime-log-view" }, D = { class: "runtime-log-view__header-ac
|
|
|
325
292
|
])
|
|
326
293
|
]));
|
|
327
294
|
}
|
|
328
|
-
}), [["__scopeId", "data-v-
|
|
295
|
+
}), [["__scopeId", "data-v-7370d66a"]]);
|
|
329
296
|
//#endregion
|
|
330
|
-
export {
|
|
297
|
+
export { M as default };
|