@ximatai/muyun-web-app 0.26.13 → 0.26.15
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-DVzrZW1X.js} +1 -1
- package/dist/BusinessLogListDrawer-D-R3wnWr.js +825 -0
- package/dist/{LoginAuditLogView-Cjrp8MKX.js → LoginAuditLogView-BP1eaEPw.js} +1 -1
- package/dist/{ModuleActionManagementView-Dkb35QXc.js → ModuleActionManagementView-D17iKVQv.js} +214 -196
- package/dist/{ModuleGovernanceView-Dx43QvGf.js → ModuleGovernanceView-LkWCtops.js} +13509 -8472
- package/dist/{RequestErrorLogView-WnGvMWiF.js → RequestErrorLogView-LzN94-Tk.js} +1 -1
- package/dist/{RoleDetailWorkspaceView-DPDb_QOn.js → RoleDetailWorkspaceView-BXA-bzFu.js} +173 -164
- package/dist/{RuntimeLogView-BRl4ZDkU.js → RuntimeLogView-DUpu2q2w.js} +48 -81
- package/dist/index.css +1 -1
- package/dist/index.js +562 -497
- package/dist/moduleGovernanceWorkspaceView-COjWtJMr.js +639 -0
- package/dist/{platform-components-1cvOeHmo.js → platform-components-Hs3DrTqE.js} +5260 -3344
- package/dist/platform-workbench-C-kE-Yqq.js +19755 -0
- package/dist/{http-B0TC0pJB.js → sse-Q1wa3p_k.js} +34 -4
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
- package/dist/types/app/useWorkbenchMenuRefresh.d.ts +4 -0
- package/dist/types/app/workbenchMenuRefresh.d.ts +14 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +3 -3
- package/dist/types/dynamic-page-runtime/ModuleDataExchangeSurface.vue.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +712 -22
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +3 -2
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +782 -60
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +5 -2
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +9 -7
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/assistantBusinessScope.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/assistantQueryCapabilities.d.ts +34 -0
- package/dist/types/dynamic-page-runtime/assistantRecordEditorPolicy.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +94 -4
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/modulePageAssistantScope.d.ts +20 -0
- package/dist/types/dynamic-page-runtime/modulePageAssistantSurface.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/recordCreationReadiness.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/recordDisplayProjection.d.ts +59 -0
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +59 -0
- package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +33 -0
- package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/recordReferenceDisplay.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/recordSaveRecovery.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/relationDraftAssistantCapabilities.d.ts +9 -0
- package/dist/types/dynamic-page-runtime/relationDraftController.d.ts +23 -0
- package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +404 -12
- package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +1 -0
- package/dist/types/formula/FormulaRuntime.d.ts +3 -1
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +5 -1
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEditor.vue.d.ts +17 -0
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuGovernanceSurface.vue.d.ts +6 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +6 -2
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuReceiptStore.d.ts +5 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuSession.d.ts +61 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuWorkspace.d.ts +180 -0
- package/dist/types/platform-admin-runtime/workspaceViewSessions.d.ts +1 -1
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +11 -7
- package/dist/types/platform-components/DictionaryPicker.vue.d.ts +2 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +6 -4
- package/dist/types/platform-components/ManagementTabs.vue.d.ts +20 -0
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +2 -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/RecordExplorerPanel.vue.d.ts +15 -9
- package/dist/types/platform-components/RecordExplorerTools.vue.d.ts +27 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +5 -1
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +9 -1
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordRelationTabs.vue.d.ts +1 -0
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +2 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -2
- package/dist/types/platform-components/index.d.ts +9 -1
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
- package/dist/types/platform-components/queryNumericValue.d.ts +3 -0
- package/dist/types/platform-components/querySettlementController.d.ts +5 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +22 -0
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +8 -0
- package/dist/types/platform-components/recordQueryListQueryController.d.ts +53 -0
- package/dist/types/platform-components/recordQueryListStandardQuery.d.ts +3 -0
- package/dist/types/platform-components/recordTreeQueryController.d.ts +18 -0
- package/dist/types/platform-components/recycleBinState.d.ts +17 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +3 -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/ConstructionPlanCard.vue.d.ts +8 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +12 -2
- package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +18 -0
- package/dist/types/platform-workbench/assistantMarkdown.d.ts +1 -0
- package/dist/types/platform-workbench/configurationCollaboration.d.ts +23 -0
- package/dist/types/platform-workbench/constructionDelivery.d.ts +3 -0
- package/dist/types/platform-workbench/constructionFields.d.ts +5 -0
- package/dist/types/platform-workbench/constructionInitialization.d.ts +4 -0
- package/dist/types/platform-workbench/constructionPlanGuard.d.ts +21 -0
- package/dist/types/platform-workbench/constructionPlanSession.d.ts +95 -0
- package/dist/types/platform-workbench/constructionReferenceDiscovery.d.ts +3 -0
- package/dist/types/platform-workbench/index.d.ts +1 -0
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +360 -0
- package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +47 -0
- package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +22 -0
- package/dist/types/views/BusinessLogRetentionControl.vue.d.ts +7 -0
- package/dist/types/views/MetadataSourceTree.vue.d.ts +7 -3
- package/dist/types/views/ModuleRuntimeActivationStatus.vue.d.ts +11 -0
- package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +8 -8
- package/dist/types/views/PageCompositionEditor.vue.d.ts +10 -0
- package/dist/types/views/PageCompositionTree.vue.d.ts +19 -13
- package/dist/types/views/businessLogClient.d.ts +3 -0
- package/dist/types/views/businessLogRetentionClient.d.ts +25 -0
- package/dist/types/views/businessRuleAssistantSurface.d.ts +7 -0
- package/dist/types/views/businessRuleEditor.d.ts +22 -0
- package/dist/types/views/businessRuleGovernance.d.ts +7 -1
- package/dist/types/views/businessRuleSession.d.ts +63 -0
- package/dist/types/views/businessRuleWorkspace.d.ts +144 -0
- package/dist/types/views/configurationEditorNavigation.d.ts +2 -0
- package/dist/types/views/metadataChangeSetSubmission.d.ts +10 -0
- package/dist/types/views/metadataEditorSession.d.ts +652 -0
- package/dist/types/views/metadataGovernanceAssistantSurface.d.ts +4 -0
- package/dist/types/views/metadataGovernanceEditor.d.ts +220 -0
- package/dist/types/views/metadataModelChangeSetClient.d.ts +36 -0
- package/dist/types/views/metadataModelEditSession.d.ts +26 -1
- package/dist/types/views/metadataNaming.d.ts +11 -1
- package/dist/types/views/metadataOrchestrationState.d.ts +22 -0
- package/dist/types/views/metadataWorkspace.d.ts +1316 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
- package/dist/types/views/moduleRuntimeActivation.d.ts +11 -0
- package/dist/types/views/pageCompositionAssistantSurface.d.ts +27 -0
- package/dist/types/views/pageCompositionCandidate.d.ts +47 -0
- package/dist/types/views/pageCompositionComponents.d.ts +42 -0
- package/dist/types/views/pageCompositionDraftState.d.ts +277 -8
- package/dist/types/views/pageCompositionDragPayload.d.ts +7 -1
- package/dist/types/views/pageCompositionMode.d.ts +1 -1
- package/dist/types/views/pageCompositionPlacement.d.ts +6 -1
- package/dist/types/views/pageCompositionPublication.d.ts +37 -0
- package/dist/types/views/pageCompositionSession.d.ts +1341 -0
- package/dist/types/views/pageCompositionWorkspace.d.ts +2555 -0
- package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
- package/dist/types/views/runtimeLogSse.d.ts +3 -13
- package/dist/types/views/usePageCompositionComponents.d.ts +68 -0
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +1 -0
- package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +4 -0
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +4 -0
- package/dist/types/web-contracts/assistant.d.ts +87 -0
- package/dist/types/web-contracts/constructionPlan.d.ts +212 -0
- package/dist/types/web-contracts/index.d.ts +33 -0
- package/dist/types/web-contracts/operation.d.ts +33 -0
- package/dist/types/web-contracts/referenceTarget.d.ts +13 -0
- package/dist/types/web-core/assistantCapabilityCatalog.d.ts +22 -0
- package/dist/types/web-core/assistantCatalogPage.d.ts +12 -0
- package/dist/types/web-core/assistantConfirmation.d.ts +23 -0
- package/dist/types/web-core/assistantConversationClient.d.ts +42 -0
- package/dist/types/web-core/assistantRuntime.d.ts +123 -0
- package/dist/types/web-core/assistantSurface.d.ts +162 -0
- package/dist/types/web-core/assistantTurnClient.d.ts +16 -0
- package/dist/types/web-core/constructionPlanClient.d.ts +55 -0
- package/dist/types/web-core/errors.d.ts +2 -0
- package/dist/types/web-core/http.d.ts +1 -0
- package/dist/types/web-core/index.d.ts +12 -0
- package/dist/types/web-core/module/dataExchangeClient.d.ts +53 -0
- package/dist/types/web-core/module/index.d.ts +1 -0
- package/dist/types/web-core/module/staticModuleClient.d.ts +12 -2
- package/dist/types/web-core/operationConfirmation.d.ts +28 -0
- package/dist/types/web-core/operationErrors.d.ts +9 -0
- package/dist/types/web-core/operationReceipt.d.ts +10 -0
- package/dist/types/web-core/sse.d.ts +9 -0
- package/dist/types/web-core/uuid.d.ts +2 -0
- package/dist/{workspaceViews-CCg6V0pr.js → workspaceViews-CHsgLFwY.js} +783 -1189
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-BtaXVJKz.js +0 -564
- package/dist/moduleGovernanceWorkspaceView-4V_UW-Bt.js +0 -40
- 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, Dn as t, It as n, Kt as r, Pn as i, Qt as a, Tn as o, Vt as s, ht as ee, rn as te, wn as ne } from "./platform-components-Hs3DrTqE.js";
|
|
2
|
+
import { r as c, t as l } from "./sse-Q1wa3p_k.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 re, openBlock as y, ref as b, toDisplayString as x, unref as S, watch as ie, withCtx as C } from "vue";
|
|
4
4
|
//#region src/views/runtimeLogClient.ts
|
|
5
|
-
var
|
|
6
|
-
function
|
|
5
|
+
var w = "/platform.runtime_log";
|
|
6
|
+
function T(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: `${w}/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: `${w}/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 E = l, D = { class: "runtime-log-view" }, O = { class: "runtime-log-view__header-actions" }, k = { key: 2 }, A = { key: 3 }, j = { 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__*/ t(/* @__PURE__ */ _({
|
|
65
32
|
name: "RuntimeLogView",
|
|
66
33
|
__name: "RuntimeLogView",
|
|
67
|
-
setup(
|
|
68
|
-
let c = i({ moduleAlias: "platform.runtime_log" }),
|
|
34
|
+
setup(t) {
|
|
35
|
+
let c = i({ moduleAlias: "platform.runtime_log" }), l = T(c.http), _ = b(), w = b(), M = b(!1), N = b(), P = b(""), F = b("closed"), I = b(), L = b(), R = b(!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"
|
|
@@ -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 = E((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, "实时日志连接失败,请重新连接。"), s(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 (!w.value) {
|
|
141
|
+
w.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} 失败,请稍后重试。`), s(t, {
|
|
180
147
|
source: "runtime-log-download",
|
|
181
148
|
phase: "load"
|
|
182
149
|
});
|
|
183
150
|
} finally {
|
|
184
|
-
|
|
151
|
+
w.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 (
|
|
230
|
-
|
|
196
|
+
return (t, i) => (y(), p("section", D, [
|
|
197
|
+
_.value ? (y(), d(S(a), {
|
|
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(S(e), {
|
|
236
203
|
class: "runtime-log-view__list",
|
|
237
|
-
context:
|
|
204
|
+
context: S(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: C(() => [m("div", O, [g(S(o), {
|
|
255
222
|
type: "primary",
|
|
256
223
|
"icon-name": "eye",
|
|
257
224
|
onClick: K
|
|
258
225
|
}, {
|
|
259
|
-
default:
|
|
226
|
+
default: C(() => [...i[0] ||= [h(" 实时查看 ", -1)]]),
|
|
260
227
|
_: 1
|
|
261
228
|
})])]),
|
|
262
|
-
cell:
|
|
229
|
+
cell: C(({ column: e, record: t }) => [e.key === "sizeBytes" ? (y(), d(S(n), {
|
|
263
230
|
key: 0,
|
|
264
|
-
value:
|
|
265
|
-
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (
|
|
231
|
+
value: t.sizeBytes
|
|
232
|
+
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (y(), d(S(r), {
|
|
266
233
|
key: 1,
|
|
267
|
-
value:
|
|
268
|
-
}, null, 8, ["value"])) : e.key === "active" ? (
|
|
269
|
-
rowActions:
|
|
234
|
+
value: t.lastModifiedAt
|
|
235
|
+
}, null, 8, ["value"])) : e.key === "active" ? (y(), p("span", k, x(t.active ? "正在写入" : "已归档"), 1)) : (y(), p("span", A, x(t[e.key]), 1))]),
|
|
236
|
+
rowActions: C(({ record: e }) => [m("div", j, [e.active === !0 ? (y(), d(S(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: C(() => [...i[1] ||= [h(" 实时查看 ", -1)]]),
|
|
277
244
|
_: 1
|
|
278
|
-
})) :
|
|
245
|
+
})) : f("v-if", !0), g(S(o), {
|
|
279
246
|
type: "link",
|
|
280
247
|
size: "small",
|
|
281
248
|
"icon-name": "download",
|
|
282
|
-
loading:
|
|
283
|
-
disabled: !!
|
|
249
|
+
loading: w.value === e.name,
|
|
250
|
+
disabled: !!w.value && w.value !== e.name,
|
|
284
251
|
onClick: (t) => de(e)
|
|
285
252
|
}, {
|
|
286
|
-
default:
|
|
253
|
+
default: C(() => [...i[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(S(ee), {
|
|
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": C(() => [W.value ? (y(), d(S(ne), {
|
|
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: C(() => [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 ? (y(), p("pre", ae, x(P.value), 1)) : (y(), d(S(te), {
|
|
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 };
|