@ximatai/muyun-web-app 0.26.21 → 0.26.23
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-6L75GZVc.js → BusinessActivityLogView-IWGZiPLo.js} +2 -2
- package/dist/{BusinessLogListDrawer-C4iFnkE7.js → BusinessLogListDrawer-UCsg6psI.js} +85 -85
- package/dist/{CodeConfigurationView-D7sqbNCg.js → CodeConfigurationView-Calkazua.js} +532 -532
- package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js} +24 -24
- package/dist/{LoginAuditLogView-B_RQ9JIX.js → LoginAuditLogView-B6J7t__0.js} +2 -2
- package/dist/ModuleActionManagementView-BZ89Woex.js +755 -0
- package/dist/{ModuleGovernanceView-Cl6tkZ6M.js → ModuleGovernanceView-D8ONs78K.js} +1892 -1892
- package/dist/{RequestErrorLogView-BJDO3Scn.js → RequestErrorLogView-poMgx4_6.js} +2 -2
- package/dist/RoleDetailWorkspaceView-6Bs1eKbm.js +1435 -0
- package/dist/{RuntimeLogView-jP9ceuJD.js → RuntimeLogView-Co-Z86bt.js} +41 -41
- package/dist/WorkflowAdministrationView-D7QpRHDp.js +650 -0
- package/dist/{WorkflowConfigurationView-Dh6BKQm5.js → WorkflowConfigurationView-mSyL_-We.js} +32 -32
- package/dist/{WorkflowWorkbenchView-BvPNKbuV.js → WorkflowWorkbenchView-DBMh3ycN.js} +224 -224
- package/dist/{codeConfiguration-DhCBKbkc.js → codeConfiguration-D1zrxzoW.js} +44 -44
- package/dist/index.css +1 -1
- package/dist/index.js +524 -550
- package/dist/moduleMenuWorkspace-lIVrTaOB.js +626 -0
- package/dist/{platform-components-i2ONyZ8r.js → platform-components-D0T03KGl.js} +2815 -2913
- package/dist/{platform-workbench-DhaREttd.js → platform-workbench-CobObbuz.js} +2770 -2745
- package/dist/record-read.js +2 -0
- package/dist/recordReadEntry-CxDHM44F.js +152 -0
- package/dist/types/consumer/recordRead.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +10 -8
- package/dist/types/platform-components/useBusinessCodeForm.d.ts +1 -0
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +3 -0
- package/dist/types/web-contracts/operation.d.ts +2 -0
- package/dist/{useWorkflowConfigurationContext-B_NxZFyz.js → useWorkflowConfigurationContext-BkcNPU2H.js} +8 -8
- package/dist/{workspaceViews-MTwNg_aQ.js → workspaceViews-BtqO8rU0.js} +355 -355
- package/package.json +5 -1
- package/dist/ModuleActionManagementView-DtGF3NC_.js +0 -755
- package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +0 -1435
- package/dist/WorkflowAdministrationView-BmNJQYtq.js +0 -650
- package/dist/moduleMenuWorkspace-BbVmNKZn.js +0 -626
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ca as e, Cn as t, Ea as n, Ht as r, Ja as i, Ka as a, Kr as o, Mn as s, Qa as c, Wa as ee, Ya as l, _n as u, da as d, fa as te, fn as ne, fr as f, ka as re, lr as ie, q as ae, ua as p, ur as m, ya as h, zn as oe } from "./platform-components-D0T03KGl.js";
|
|
2
2
|
import { computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, nextTick as w, onBeforeUnmount as T, openBlock as E, ref as D, shallowRef as O, toDisplayString as k, unref as A, watch as se, withCtx as j } from "vue";
|
|
3
3
|
//#region src/views/runtimeLogClient.ts
|
|
4
4
|
var M = "/platform.runtime_log";
|
|
5
|
-
function ce(
|
|
6
|
-
if (!e
|
|
5
|
+
function ce(e, t = a) {
|
|
6
|
+
if (!c(e)) throw new p(d(t, "platform.screen.runtimeLogClient.the-current-http-client-does-not-support-runtime-log-streams", "当前 HTTP 客户端不支持运行日志流。"));
|
|
7
7
|
return {
|
|
8
|
-
download(
|
|
9
|
-
return
|
|
10
|
-
path: `${M}/files/${encodeURIComponent(
|
|
8
|
+
download(t) {
|
|
9
|
+
return e.stream({
|
|
10
|
+
path: `${M}/files/${encodeURIComponent(t)}/download`,
|
|
11
11
|
headers: { Accept: "application/octet-stream" }
|
|
12
12
|
});
|
|
13
13
|
},
|
|
14
|
-
activeStream(
|
|
15
|
-
return
|
|
14
|
+
activeStream(t, n) {
|
|
15
|
+
return e.stream({
|
|
16
16
|
method: "POST",
|
|
17
17
|
path: `${M}/active/stream`,
|
|
18
|
-
body: { tailLines:
|
|
18
|
+
body: { tailLines: t },
|
|
19
19
|
headers: { Accept: "text/event-stream, application/json" },
|
|
20
20
|
...n ? { signal: n } : {}
|
|
21
21
|
});
|
|
@@ -24,14 +24,14 @@ function ce(t, n = f) {
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/views/runtimeLogSse.ts
|
|
27
|
-
var le =
|
|
27
|
+
var le = h, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view__header-actions" }, fe = { key: 2 }, pe = { key: 3 }, me = { class: "runtime-log-view__row-actions" }, he = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "runtime-log-view__content"
|
|
30
|
-
}, ge = 500, N = /*#__PURE__*/
|
|
30
|
+
}, ge = 500, N = /*#__PURE__*/ f(/* @__PURE__ */ C({
|
|
31
31
|
name: "RuntimeLogView",
|
|
32
32
|
__name: "RuntimeLogView",
|
|
33
|
-
setup(
|
|
34
|
-
let c =
|
|
33
|
+
setup(a) {
|
|
34
|
+
let c = l(), f = o({ moduleAlias: "platform.runtime_log" }), h = ce(f.http, c), C = O(), M = g(() => C.value ? $(C.value) : void 0), N = D(), P = D(!1), F = D(), I = D(""), L = D("closed"), R = O(), z = D(), B = D(!0), V = 0, H, U, W = 0, _e = g(() => {
|
|
35
35
|
let e = R.value;
|
|
36
36
|
return e ? typeof e == "string" ? e : e instanceof Error ? $(e) : c.t(e.source.sourceId, e.source.originalText, e.args) : {
|
|
37
37
|
connecting: c.t("platform.screen.RuntimeLogView.connecting-to-live-logs", "正在连接实时日志…"),
|
|
@@ -86,7 +86,7 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
86
86
|
}
|
|
87
87
|
async function Se(e, t) {
|
|
88
88
|
try {
|
|
89
|
-
let n = await
|
|
89
|
+
let n = await h.activeStream(ge, t.signal);
|
|
90
90
|
if (t.signal.aborted || e !== V) {
|
|
91
91
|
await n.cancel();
|
|
92
92
|
return;
|
|
@@ -99,9 +99,9 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
99
99
|
if (e) break;
|
|
100
100
|
t && a.push(i.decode(t, { stream: !0 }));
|
|
101
101
|
}
|
|
102
|
-
a.push(i.decode()), a.finish(), !t.signal.aborted && e === V && L.value !== "rotated" && (L.value = "closed", R.value =
|
|
102
|
+
a.push(i.decode()), a.finish(), !t.signal.aborted && e === V && L.value !== "rotated" && (L.value = "closed", R.value = d(c, "platform.screen.RuntimeLogView.the-live-log-connection-has-ended", "实时日志连接已结束。"));
|
|
103
103
|
} catch (n) {
|
|
104
|
-
!t.signal.aborted && e === V && (L.value = "error", R.value = Q(n,
|
|
104
|
+
!t.signal.aborted && e === V && (L.value = "error", R.value = Q(n, d(c, "platform.screen.RuntimeLogView.failed-to-connect-to-live-logs-reconnect", "实时日志连接失败,请重新连接。")), u(n, {
|
|
105
105
|
language: c,
|
|
106
106
|
source: "runtime-log-stream",
|
|
107
107
|
phase: "load"
|
|
@@ -110,12 +110,12 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
110
110
|
e === V && (H = void 0);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function Ce(e,
|
|
114
|
-
if (!(
|
|
113
|
+
function Ce(e, t, n) {
|
|
114
|
+
if (!(n.signal.aborted || t !== V)) switch (e.event) {
|
|
115
115
|
case "snapshot":
|
|
116
116
|
case "reset": {
|
|
117
117
|
let t = Y(e.data);
|
|
118
|
-
I.value = X(t.text), F.value = Z(t.fileName) ?? F.value, L.value = "live", R.value = e.event === "reset" ?
|
|
118
|
+
I.value = X(t.text), F.value = Z(t.fileName) ?? F.value, L.value = "live", R.value = e.event === "reset" ? d(c, "platform.screen.RuntimeLogView.log-content-was-reset-live-updates-are-continuing", "日志内容已重置,正在继续实时更新。") : void 0;
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
case "append": {
|
|
@@ -125,18 +125,18 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
125
125
|
}
|
|
126
126
|
case "rotated": {
|
|
127
127
|
let t = Y(e.data);
|
|
128
|
-
F.value = Z(t.fileName) ?? F.value, W < 1 ? (W += 1, L.value = "connecting", R.value =
|
|
128
|
+
F.value = Z(t.fileName) ?? F.value, W < 1 ? (W += 1, L.value = "connecting", R.value = d(c, "platform.screen.RuntimeLogView.the-log-file-has-rotated-reconnecting-to-the-latest-file", "日志文件已轮转,正在重新连接最新文件…"), w(() => K())) : (L.value = "rotated", R.value = d(c, "platform.screen.RuntimeLogView.the-log-file-has-rotated-again-reconnect-manually", "日志文件再次轮转,请手动重新连接。"), q());
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
case "error": {
|
|
132
|
-
let
|
|
132
|
+
let t = Y(e.data);
|
|
133
133
|
L.value = "error";
|
|
134
|
-
let
|
|
135
|
-
R.value =
|
|
136
|
-
message:
|
|
137
|
-
source:
|
|
134
|
+
let n = Z(t.message), r = t.messageSource;
|
|
135
|
+
R.value = t.code === "RUNTIME_LOG_STREAM_INTERRUPTED" && re(r) && r.sourceKind === "CODE" && r.sourceId === "platform.runtime-log.stream-interrupted" && r.originalText === ee(r.sourceId) && i(r, n ?? "") ? {
|
|
136
|
+
message: n,
|
|
137
|
+
source: r,
|
|
138
138
|
args: {}
|
|
139
|
-
} :
|
|
139
|
+
} : n ?? d(c, "platform.screen.RuntimeLogView.the-live-log-connection-encountered-an-error-reconnect", "实时日志连接出现错误,请重新连接。"), q();
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -149,10 +149,10 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
149
149
|
if (!N.value) {
|
|
150
150
|
N.value = e.name;
|
|
151
151
|
try {
|
|
152
|
-
let t = await Te(await
|
|
152
|
+
let t = await Te(await h.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");
|
|
153
153
|
i.href = r, i.download = e.name, i.click(), window.setTimeout(() => URL.revokeObjectURL(r), 6e4);
|
|
154
154
|
} catch (t) {
|
|
155
|
-
C.value = Q(t,
|
|
155
|
+
C.value = Q(t, d(c, "platform.screen.RuntimeLogView.failed-to-download-value-try-again-later", "下载 {value1} 失败,请稍后重试。", { value1: e.name })), u(t, {
|
|
156
156
|
language: c,
|
|
157
157
|
source: "runtime-log-download",
|
|
158
158
|
phase: "load"
|
|
@@ -201,20 +201,20 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
201
201
|
return typeof e == "string" && e ? e : void 0;
|
|
202
202
|
}
|
|
203
203
|
function Q(e, t) {
|
|
204
|
-
return e instanceof Error && e.message ? e : new
|
|
204
|
+
return e instanceof Error && e.message ? e : new p(t);
|
|
205
205
|
}
|
|
206
|
-
function $(
|
|
207
|
-
return
|
|
206
|
+
function $(t) {
|
|
207
|
+
return t instanceof p ? te(t, c) : n(e(t), c);
|
|
208
208
|
}
|
|
209
|
-
return (e,
|
|
210
|
-
M.value ? (E(), _(A(
|
|
209
|
+
return (e, n) => (E(), y("section", ue, [
|
|
210
|
+
M.value ? (E(), _(A(s), {
|
|
211
211
|
key: 0,
|
|
212
212
|
class: "runtime-log-view__error",
|
|
213
213
|
message: M.value
|
|
214
214
|
}, null, 8, ["message"])) : v("v-if", !0),
|
|
215
215
|
S(A(ae), {
|
|
216
216
|
class: "runtime-log-view__list",
|
|
217
|
-
context: A(
|
|
217
|
+
context: A(f),
|
|
218
218
|
title: A(c).t("platform.screen.RuntimeLogView.runtime-logs", "程序日志"),
|
|
219
219
|
columns: ye.value,
|
|
220
220
|
"row-key": "name",
|
|
@@ -239,13 +239,13 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
239
239
|
default: j(() => [x(k(A(c).t("platform.screen.RuntimeLogView.view-live-logs", "实时查看")), 1)]),
|
|
240
240
|
_: 1
|
|
241
241
|
})])]),
|
|
242
|
-
cell: j(({ column: e, record:
|
|
242
|
+
cell: j(({ column: e, record: n }) => [e.key === "sizeBytes" ? (E(), _(A(ne), {
|
|
243
243
|
key: 0,
|
|
244
|
-
value:
|
|
245
|
-
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (E(), _(A(
|
|
244
|
+
value: n.sizeBytes
|
|
245
|
+
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (E(), _(A(t), {
|
|
246
246
|
key: 1,
|
|
247
|
-
value:
|
|
248
|
-
}, null, 8, ["value"])) : e.key === "active" ? (E(), y("span", fe, k(
|
|
247
|
+
value: n.lastModifiedAt
|
|
248
|
+
}, null, 8, ["value"])) : e.key === "active" ? (E(), y("span", fe, k(n.active ? A(c).t("platform.screen.RuntimeLogView.active", "正在写入") : A(c).t("platform.workflow.archived", "已归档")), 1)) : (E(), y("span", pe, k(n[e.key]), 1))]),
|
|
249
249
|
rowActions: j(({ record: e }) => [b("div", me, [e.active === !0 ? (E(), _(A(m), {
|
|
250
250
|
key: 0,
|
|
251
251
|
type: "link",
|
|
@@ -278,7 +278,7 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
278
278
|
"empty-description",
|
|
279
279
|
"row-actions-title"
|
|
280
280
|
]),
|
|
281
|
-
S(A(
|
|
281
|
+
S(A(r), {
|
|
282
282
|
open: P.value,
|
|
283
283
|
title: F.value ? A(c).t("platform.screen.RuntimeLogView.live-logs-value", "实时日志 · {value1}", { value1: F.value }) : A(c).t("platform.screen.RuntimeLogView.live-logs", "实时日志"),
|
|
284
284
|
subtitle: _e.value,
|
|
@@ -287,7 +287,7 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
287
287
|
dismissal: "dismissible",
|
|
288
288
|
onClose: xe
|
|
289
289
|
}, {
|
|
290
|
-
"header-actions": j(() => [ve.value ? (E(), _(A(
|
|
290
|
+
"header-actions": j(() => [ve.value ? (E(), _(A(ie), {
|
|
291
291
|
key: 0,
|
|
292
292
|
emphasis: "quiet",
|
|
293
293
|
"icon-name": "reload",
|