@ximatai/muyun-web-app 0.26.29 → 0.26.32
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-fzxP3P68.js → BusinessActivityLogView-Dw_SjtBi.js} +2 -2
- package/dist/BusinessLogListDrawer-Bkws0k6G.js +868 -0
- package/dist/{CodeConfigurationView-DXrXp7kg.js → CodeConfigurationView-D-S2nX4C.js} +703 -703
- package/dist/{ConfigurationTranslationView-CNWJhB8C.js → ConfigurationTranslationView-CzLoZCo5.js} +21 -21
- package/dist/{LoginAuditLogView-D2q4WT8W.js → LoginAuditLogView-DxAlmQ9Q.js} +2 -2
- package/dist/ModuleActionManagementView-CfsGwDOn.js +780 -0
- package/dist/{ModuleGovernanceView-BFCfy5wB.js → ModuleGovernanceView-Bt2UhO-A.js} +2352 -2352
- package/dist/{RequestErrorLogView-C-dZhHvD.js → RequestErrorLogView--g3Uwvzx.js} +2 -2
- package/dist/RoleDetailWorkspaceView-Bv21G3CF.js +1435 -0
- package/dist/{RuntimeLogView-BuFuboQh.js → RuntimeLogView-CM47CKiD.js} +38 -38
- package/dist/WorkflowAdministrationView-CYq7bXS5.js +650 -0
- package/dist/{WorkflowConfigurationView-VLObweIg.js → WorkflowConfigurationView-D1ve8wHF.js} +189 -189
- package/dist/WorkflowWorkbenchView-CJXy2iRP.js +759 -0
- package/dist/{codeConfiguration-DbUEhnW7.js → codeConfiguration-Bls4mHm3.js} +28 -28
- package/dist/{configurationEditorNavigation-DZeBbg3z.js → configurationEditorNavigation-DteTknF3.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +704 -646
- package/dist/{moduleMenuWorkspace-COanAuqc.js → moduleMenuWorkspace-CsYcDzfq.js} +197 -197
- package/dist/{platform-components-5joS6YaR.js → platform-components-CT5wnPa0.js} +2267 -2034
- package/dist/{platform-workbench-le7pFe4d.js → platform-workbench-CBLyxlvV.js} +5026 -5014
- package/dist/types/app/useLoginFailureFeedback.d.ts +8 -0
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +7 -29
- package/dist/types/platform-components/RecordPicker.vue.d.ts +7 -31
- package/dist/types/platform-components/RecordReferencePicker.vue.d.ts +24 -0
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +1 -1
- package/dist/types/platform-components/ReferenceSelectionPanel.vue.d.ts +20 -0
- package/dist/types/platform-components/UserPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordReferencePickerProvider.d.ts +26 -0
- package/dist/types/platform-components/workflowAccountOptions.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +13 -2
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +8 -2
- package/dist/{useWorkflowConfigurationContext-B9GigSF8.js → useWorkflowConfigurationContext-DsuGHZ0U.js} +9 -9
- package/dist/{workspaceViews-8-LaaGxD.js → workspaceViews-BxEz6u5n.js} +523 -523
- package/package.json +5 -1
- package/dist/BusinessLogListDrawer-C7wb2R6q.js +0 -868
- package/dist/ModuleActionManagementView-Xd8uB3iR.js +0 -780
- package/dist/RoleDetailWorkspaceView-BmtEBE0r.js +0 -1435
- package/dist/WorkflowAdministrationView-Cb6RnlGU.js +0 -650
- package/dist/WorkflowWorkbenchView-CbZervUv.js +0 -759
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $a as e, Fa as t, Gt as n, Ln as r, Ma as i, Oa as a, On as o, Ra as s, Wn as ee, Y as te, _r as c, ba as l, ei as ne, gr as re, hn as ie, io as ae, ro as oe, so as u, to as d, xa as f, xn as p, ya as m, yr as h } from "./platform-components-CT5wnPa0.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(e, t =
|
|
6
|
-
if (!u(e)) throw new
|
|
5
|
+
function ce(e, t = d) {
|
|
6
|
+
if (!u(e)) throw new m(l(t, "platform.screen.runtimeLogClient.the-current-http-client-does-not-support-runtime-log-streams", "当前 HTTP 客户端不支持运行日志流。"));
|
|
7
7
|
return {
|
|
8
8
|
download(t) {
|
|
9
9
|
return e.stream({
|
|
@@ -24,14 +24,14 @@ function ce(e, t = f) {
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/views/runtimeLogSse.ts
|
|
27
|
-
var le =
|
|
27
|
+
var le = a, 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__*/ h(/* @__PURE__ */ C({
|
|
31
31
|
name: "RuntimeLogView",
|
|
32
32
|
__name: "RuntimeLogView",
|
|
33
|
-
setup(
|
|
34
|
-
let u =
|
|
33
|
+
setup(a) {
|
|
34
|
+
let u = ae(), d = ne({ moduleAlias: "platform.runtime_log" }), h = ce(d.http, u), 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) : u.t(e.source.sourceId, e.source.originalText, e.args) : {
|
|
37
37
|
connecting: u.t("platform.screen.RuntimeLogView.connecting-to-live-logs", "正在连接实时日志…"),
|
|
@@ -86,7 +86,7 @@ var le = d, 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 = d, 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 = l(u, "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, l(u, "platform.screen.RuntimeLogView.failed-to-connect-to-live-logs-reconnect", "实时日志连接失败,请重新连接。")), p(n, {
|
|
105
105
|
language: u,
|
|
106
106
|
source: "runtime-log-stream",
|
|
107
107
|
phase: "load"
|
|
@@ -110,33 +110,33 @@ var le = d, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
110
110
|
e === V && (H = void 0);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function Ce(
|
|
114
|
-
if (!(
|
|
113
|
+
function Ce(t, n, r) {
|
|
114
|
+
if (!(r.signal.aborted || n !== V)) switch (t.event) {
|
|
115
115
|
case "snapshot":
|
|
116
116
|
case "reset": {
|
|
117
|
-
let
|
|
118
|
-
I.value = X(
|
|
117
|
+
let e = Y(t.data);
|
|
118
|
+
I.value = X(e.text), F.value = Z(e.fileName) ?? F.value, L.value = "live", R.value = t.event === "reset" ? l(u, "platform.screen.RuntimeLogView.log-content-was-reset-live-updates-are-continuing", "日志内容已重置,正在继续实时更新。") : void 0;
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
case "append": {
|
|
122
|
-
let
|
|
123
|
-
I.value += X(
|
|
122
|
+
let e = Y(t.data);
|
|
123
|
+
I.value += X(e.text), L.value = "live", R.value = void 0;
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
126
|
case "rotated": {
|
|
127
|
-
let
|
|
128
|
-
F.value = Z(
|
|
127
|
+
let e = Y(t.data);
|
|
128
|
+
F.value = Z(e.fileName) ?? F.value, W < 1 ? (W += 1, L.value = "connecting", R.value = l(u, "platform.screen.RuntimeLogView.the-log-file-has-rotated-reconnecting-to-the-latest-file", "日志文件已轮转,正在重新连接最新文件…"), w(() => K())) : (L.value = "rotated", R.value = l(u, "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 n = Y(t.data);
|
|
133
133
|
L.value = "error";
|
|
134
|
-
let
|
|
135
|
-
R.value =
|
|
136
|
-
message:
|
|
137
|
-
source:
|
|
134
|
+
let r = Z(n.message), i = n.messageSource;
|
|
135
|
+
R.value = n.code === "RUNTIME_LOG_STREAM_INTERRUPTED" && s(i) && i.sourceKind === "CODE" && i.sourceId === "platform.runtime-log.stream-interrupted" && i.originalText === e(i.sourceId) && oe(i, r ?? "") ? {
|
|
136
|
+
message: r,
|
|
137
|
+
source: i,
|
|
138
138
|
args: {}
|
|
139
|
-
} :
|
|
139
|
+
} : r ?? l(u, "platform.screen.RuntimeLogView.the-live-log-connection-encountered-an-error-reconnect", "实时日志连接出现错误,请重新连接。"), q();
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -149,10 +149,10 @@ var le = d, 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, l(u, "platform.screen.RuntimeLogView.failed-to-download-value-try-again-later", "下载 {value1} 失败,请稍后重试。", { value1: e.name })), p(t, {
|
|
156
156
|
language: u,
|
|
157
157
|
source: "runtime-log-download",
|
|
158
158
|
phase: "load"
|
|
@@ -201,18 +201,18 @@ var le = d, 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 m(t);
|
|
205
205
|
}
|
|
206
206
|
function $(e) {
|
|
207
|
-
return e instanceof
|
|
207
|
+
return e instanceof m ? f(e, u) : t(i(e), u);
|
|
208
208
|
}
|
|
209
|
-
return (
|
|
210
|
-
M.value ? (E(), _(A(
|
|
209
|
+
return (e, t) => (E(), y("section", ue, [
|
|
210
|
+
M.value ? (E(), _(A(r), {
|
|
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
|
-
S(A(
|
|
215
|
+
S(A(te), {
|
|
216
216
|
class: "runtime-log-view__list",
|
|
217
217
|
context: A(d),
|
|
218
218
|
title: A(u).t("platform.screen.RuntimeLogView.runtime-logs", "程序日志"),
|
|
@@ -231,7 +231,7 @@ var le = d, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
231
231
|
"row-actions-title": A(u).t("platform.screen.RecordPermissionDialog.operation", "操作"),
|
|
232
232
|
"action-column-width": "176"
|
|
233
233
|
}, {
|
|
234
|
-
operations: j(() => [b("div", de, [S(A(
|
|
234
|
+
operations: j(() => [b("div", de, [S(A(c), {
|
|
235
235
|
type: "primary",
|
|
236
236
|
"icon-name": "eye",
|
|
237
237
|
onClick: G
|
|
@@ -239,14 +239,14 @@ var le = d, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
239
239
|
default: j(() => [x(k(A(u).t("platform.screen.RuntimeLogView.view-live-logs", "实时查看")), 1)]),
|
|
240
240
|
_: 1
|
|
241
241
|
})])]),
|
|
242
|
-
cell: j(({ column: e, record: t }) => [e.key === "sizeBytes" ? (E(), _(A(
|
|
242
|
+
cell: j(({ column: e, record: t }) => [e.key === "sizeBytes" ? (E(), _(A(ie), {
|
|
243
243
|
key: 0,
|
|
244
244
|
value: t.sizeBytes
|
|
245
|
-
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (E(), _(A(
|
|
245
|
+
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (E(), _(A(o), {
|
|
246
246
|
key: 1,
|
|
247
247
|
value: t.lastModifiedAt
|
|
248
248
|
}, null, 8, ["value"])) : e.key === "active" ? (E(), y("span", fe, k(t.active ? A(u).t("platform.screen.RuntimeLogView.active", "正在写入") : A(u).t("platform.workflow.archived", "已归档")), 1)) : (E(), y("span", pe, k(t[e.key]), 1))]),
|
|
249
|
-
rowActions: j(({ record: e }) => [b("div", me, [e.active === !0 ? (E(), _(A(
|
|
249
|
+
rowActions: j(({ record: e }) => [b("div", me, [e.active === !0 ? (E(), _(A(c), {
|
|
250
250
|
key: 0,
|
|
251
251
|
type: "link",
|
|
252
252
|
size: "small",
|
|
@@ -255,7 +255,7 @@ var le = d, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
255
255
|
}, {
|
|
256
256
|
default: j(() => [x(k(A(u).t("platform.screen.RuntimeLogView.view-live-logs", "实时查看")), 1)]),
|
|
257
257
|
_: 1
|
|
258
|
-
})) : v("v-if", !0), S(A(
|
|
258
|
+
})) : v("v-if", !0), S(A(c), {
|
|
259
259
|
type: "link",
|
|
260
260
|
size: "small",
|
|
261
261
|
"icon-name": "download",
|
|
@@ -287,7 +287,7 @@ var le = d, 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(re), {
|
|
291
291
|
key: 0,
|
|
292
292
|
emphasis: "quiet",
|
|
293
293
|
"icon-name": "reload",
|
|
@@ -299,7 +299,7 @@ var le = d, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
299
299
|
ref: z,
|
|
300
300
|
class: "runtime-log-view__viewport",
|
|
301
301
|
onScroll: J
|
|
302
|
-
}, [I.value ? (E(), y("pre", he, k(I.value), 1)) : (E(), _(A(
|
|
302
|
+
}, [I.value ? (E(), y("pre", he, k(I.value), 1)) : (E(), _(A(ee), {
|
|
303
303
|
key: 1,
|
|
304
304
|
description: L.value === "connecting" ? A(u).t("platform.screen.RuntimeLogView.reading-the-end-of-the-log", "正在读取日志末尾内容…") : A(u).t("platform.screen.RuntimeLogView.no-log-content", "暂无日志内容")
|
|
305
305
|
}, null, 8, ["description"]))], 544)]),
|