@ximatai/muyun-web-app 0.26.24 → 0.26.25
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-DQ5_VmLp.js → BusinessActivityLogView-a6oZ2t9t.js} +2 -2
- package/dist/{BusinessLogListDrawer-BnucgqNA.js → BusinessLogListDrawer-DtSXpK6g.js} +170 -166
- package/dist/{CodeConfigurationView-CtQjmpLz.js → CodeConfigurationView-BVu1ZnH-.js} +291 -291
- package/dist/{ConfigurationTranslationView-BiYn2MJx.js → ConfigurationTranslationView-Cd8ezR4t.js} +39 -39
- package/dist/{LoginAuditLogView-BIz1LVC3.js → LoginAuditLogView-DyvHTCXH.js} +2 -2
- package/dist/{ModuleActionManagementView-0_ek9yag.js → ModuleActionManagementView-y3t2YHKF.js} +161 -161
- package/dist/{ModuleGovernanceView-DEDF61vj.js → ModuleGovernanceView-BqJq2Pxm.js} +2501 -2501
- package/dist/{RequestErrorLogView-HatmiK8_.js → RequestErrorLogView-2iPeAi3b.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-BzzoarpR.js → RoleDetailWorkspaceView-G-5VAV_B.js} +79 -79
- package/dist/{RuntimeLogView-Vdt6SWK6.js → RuntimeLogView-CulSgS0l.js} +60 -60
- package/dist/{WorkflowAdministrationView-Dlw2ng0N.js → WorkflowAdministrationView-y8VBYMLZ.js} +154 -154
- package/dist/{WorkflowConfigurationView-j2xnGmkM.js → WorkflowConfigurationView-DpONX2nN.js} +293 -293
- package/dist/{WorkflowWorkbenchView-Nv4mvTTP.js → WorkflowWorkbenchView-CGo1eZjr.js} +235 -235
- package/dist/{codeConfiguration-B_z1qQvB.js → codeConfiguration-fZiz0PNC.js} +26 -26
- package/dist/index.css +1 -1
- package/dist/index.js +2195 -1562
- package/dist/{moduleMenuWorkspace-1N0U7QW9.js → moduleMenuWorkspace-AZ4G9BpZ.js} +233 -233
- package/dist/{platform-components-Xb5qgsXU.js → platform-components-D98pyZ77.js} +3584 -2996
- package/dist/{platform-workbench-VhgKhPLI.js → platform-workbench-BBLDvT9V.js} +5542 -5417
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +4 -1
- package/dist/types/app/PersonalAccessTokenDialog.vue.d.ts +15 -0
- package/dist/types/app/PersonalAccessTokens.vue.d.ts +8 -0
- package/dist/types/app/WorkbenchAccountCenter.vue.d.ts +40 -0
- package/dist/types/app/themeSkinPreference.d.ts +2 -2
- package/dist/types/app/useCurrentUserProfile.d.ts +1 -0
- package/dist/types/app/usePersonalAccessTokenAccess.d.ts +11 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +20 -4
- package/dist/types/consumer/index.d.ts +9 -0
- package/dist/types/dynamic-page-runtime/formCreateDefaults.d.ts +3 -0
- package/dist/types/platform-admin-runtime/authSession.d.ts +2 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- package/dist/types/platform-components/CronExpressionInput.vue.d.ts +12 -0
- package/dist/types/platform-components/DurationSecondsInput.vue.d.ts +10 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/cronExpression.d.ts +36 -0
- package/dist/types/platform-components/durationSeconds.d.ts +31 -0
- package/dist/types/platform-components/index.d.ts +6 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +5 -0
- package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +11 -1
- package/dist/types/platform-workbench/index.d.ts +3 -0
- package/dist/types/platform-workbench/workbenchAccountMenu.d.ts +33 -0
- package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +1 -1
- package/dist/types/views/businessLogClient.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiInputGroup.vue.d.ts +20 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +16 -0
- package/dist/types/web-core/clients.d.ts +15 -1
- package/dist/{useWorkflowConfigurationContext-BLFXzHwn.js → useWorkflowConfigurationContext-BcK19EXl.js} +8 -8
- package/dist/{workspaceViews-Cas3PR5B.js → workspaceViews-Dr7RZXvX.js} +620 -620
- package/package.json +1 -1
package/dist/{ConfigurationTranslationView-BiYn2MJx.js → ConfigurationTranslationView-Cd8ezR4t.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $r as e, ba as t, bn as n, fr as r, gr as i, ir as a, lr as o, no as s, vr as c } from "./platform-components-D98pyZ77.js";
|
|
2
2
|
import { Fragment as l, computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, isRef as _, openBlock as v, ref as y, toDisplayString as b, unref as x, watch as S, withCtx as C } from "vue";
|
|
3
3
|
//#region src/views/configurationTranslationWorkspace.ts
|
|
4
4
|
function w(e) {
|
|
5
|
-
let
|
|
6
|
-
|
|
5
|
+
let n = y(""), r = y(""), i = u(() => r.value === n.value.trim()), a = y(), o = y("en"), s = y([]), c = y([]), l = y({}), d = /* @__PURE__ */ new Map(), f = y(!1), p = u(() => s.value.find((e) => e.sourceId === a.value)), m = u(() => JSON.stringify([
|
|
6
|
+
r.value,
|
|
7
7
|
p.value?.sourceId,
|
|
8
8
|
p.value?.sourceVersion,
|
|
9
9
|
o.value
|
|
@@ -17,52 +17,52 @@ function w(e) {
|
|
|
17
17
|
c.value = [...c.value.filter((t) => t.id !== e.id), e];
|
|
18
18
|
};
|
|
19
19
|
async function S() {
|
|
20
|
-
if (f.value || !
|
|
21
|
-
let
|
|
20
|
+
if (f.value || !n.value.trim()) return;
|
|
21
|
+
let t = ++b, i = n.value.trim();
|
|
22
22
|
f.value = !0;
|
|
23
23
|
try {
|
|
24
|
-
let [o, l] = await Promise.all([e.request({ path: `/platform.localization/modules/${encodeURIComponent(
|
|
25
|
-
if (
|
|
26
|
-
|
|
24
|
+
let [o, l] = await Promise.all([e.request({ path: `/platform.localization/modules/${encodeURIComponent(i)}/sources` }), e.request({ path: `/platform.localization/modules/${encodeURIComponent(i)}/translations` })]);
|
|
25
|
+
if (t !== b || n.value.trim() !== i) return;
|
|
26
|
+
r.value = i, s.value = o, c.value = l, o.some((e) => e.sourceId === a.value) || (a.value = o[0]?.sourceId);
|
|
27
27
|
} finally {
|
|
28
|
-
|
|
28
|
+
t === b && (f.value = !1);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
async function C() {
|
|
32
|
-
if (f.value || !
|
|
33
|
-
let
|
|
32
|
+
if (f.value || !i.value || !p.value || !_.value.trim()) return;
|
|
33
|
+
let n = p.value, a = m.value, s = _.value;
|
|
34
34
|
f.value = !0;
|
|
35
35
|
try {
|
|
36
|
-
let
|
|
36
|
+
let i = t(await e.request({
|
|
37
37
|
method: "POST",
|
|
38
38
|
path: "/platform.localization/drafts",
|
|
39
39
|
body: {
|
|
40
|
-
moduleAlias:
|
|
41
|
-
sourceId:
|
|
42
|
-
sourceVersion:
|
|
40
|
+
moduleAlias: r.value,
|
|
41
|
+
sourceId: n.sourceId,
|
|
42
|
+
sourceVersion: n.sourceVersion,
|
|
43
43
|
languageTag: o.value,
|
|
44
44
|
text: s,
|
|
45
|
-
version:
|
|
45
|
+
version: a in l.value ? d.get(a) : h.value?.version
|
|
46
46
|
}
|
|
47
47
|
}));
|
|
48
|
-
x(
|
|
48
|
+
x(i);
|
|
49
49
|
let c = { ...l.value };
|
|
50
|
-
c[
|
|
50
|
+
c[a] === s ? (delete c[a], d.delete(a)) : a in c && d.set(a, i.version), l.value = c;
|
|
51
51
|
} finally {
|
|
52
52
|
f.value = !1;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
async function w() {
|
|
56
|
-
if (f.value || !
|
|
57
|
-
let
|
|
56
|
+
if (f.value || !i.value || v.value || !h.value || !p.value) return;
|
|
57
|
+
let n = h.value;
|
|
58
58
|
f.value = !0;
|
|
59
59
|
try {
|
|
60
|
-
x(
|
|
60
|
+
x(t(await e.request({
|
|
61
61
|
method: "POST",
|
|
62
|
-
path: `/platform.localization/translations/${encodeURIComponent(
|
|
62
|
+
path: `/platform.localization/translations/${encodeURIComponent(n.id)}/publish`,
|
|
63
63
|
body: {
|
|
64
64
|
sourceVersion: p.value.sourceVersion,
|
|
65
|
-
version:
|
|
65
|
+
version: n.version
|
|
66
66
|
}
|
|
67
67
|
})));
|
|
68
68
|
} finally {
|
|
@@ -70,10 +70,10 @@ function w(e) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
|
-
moduleAlias:
|
|
74
|
-
loadedModuleAlias:
|
|
75
|
-
ready:
|
|
76
|
-
sourceId:
|
|
73
|
+
moduleAlias: n,
|
|
74
|
+
loadedModuleAlias: r,
|
|
75
|
+
ready: i,
|
|
76
|
+
sourceId: a,
|
|
77
77
|
targetLanguage: o,
|
|
78
78
|
sources: s,
|
|
79
79
|
source: p,
|
|
@@ -92,14 +92,14 @@ function w(e) {
|
|
|
92
92
|
var T = { class: "configuration-translation" }, E = { class: "configuration-translation__toolbar" }, D = { class: "configuration-translation__location" }, O = {
|
|
93
93
|
key: 0,
|
|
94
94
|
role: "status"
|
|
95
|
-
}, k = { class: "configuration-translation__toolbar" }, A = { key: 1 }, j = /*#__PURE__*/
|
|
95
|
+
}, k = { class: "configuration-translation__toolbar" }, A = { key: 1 }, j = /*#__PURE__*/ c(/* @__PURE__ */ g({
|
|
96
96
|
__name: "ConfigurationTranslationView",
|
|
97
|
-
setup(
|
|
98
|
-
let
|
|
97
|
+
setup(t) {
|
|
98
|
+
let c = s(), g = c.t, y = e({ moduleAlias: "platform.localization" }), j = w(y.http), { moduleAlias: M, sourceId: N, targetLanguage: P, sources: F, source: I, translation: L, previous: R, text: z, dirty: B, busy: V, ready: H } = j, U = u(() => c.catalog.value.languages.filter((e) => e.enabled !== !1).map((e) => ({
|
|
99
99
|
value: e.tag,
|
|
100
100
|
label: e.nativeName
|
|
101
101
|
})));
|
|
102
|
-
S(
|
|
102
|
+
S(c.catalog, (e) => {
|
|
103
103
|
e.languages.some((e) => e.tag === P.value && e.enabled !== !1) || (P.value = e.languages.find((t) => t.enabled !== !1 && t.tag !== e.defaultTag)?.tag ?? e.defaultTag);
|
|
104
104
|
}, { immediate: !0 });
|
|
105
105
|
let W = u(() => F.value.map((e) => ({
|
|
@@ -126,14 +126,14 @@ var T = { class: "configuration-translation" }, E = { class: "configuration-tran
|
|
|
126
126
|
disabled: x(V),
|
|
127
127
|
placeholder: "education.exam"
|
|
128
128
|
}, null, 8, ["value", "disabled"])]),
|
|
129
|
-
h(x(
|
|
129
|
+
h(x(i), {
|
|
130
130
|
disabled: x(V) || !x(M) || x(y).can("viewTranslationSources") !== !0 || x(y).can("viewTranslations") !== !0,
|
|
131
131
|
onClick: t[1] ||= (e) => G(x(j).load)
|
|
132
132
|
}, {
|
|
133
133
|
default: C(() => [m(b(x(g)("platform.translation.load", "加载原文")), 1)]),
|
|
134
134
|
_: 1
|
|
135
135
|
}, 8, ["disabled"]),
|
|
136
|
-
p("label", null, [m(b(x(g)("platform.translation.target-language", "翻译语言")), 1), h(x(
|
|
136
|
+
p("label", null, [m(b(x(g)("platform.translation.target-language", "翻译语言")), 1), h(x(r), {
|
|
137
137
|
value: x(P),
|
|
138
138
|
"onUpdate:value": t[2] ||= (e) => _(P) ? P.value = e : null,
|
|
139
139
|
options: U.value,
|
|
@@ -145,7 +145,7 @@ var T = { class: "configuration-translation" }, E = { class: "configuration-tran
|
|
|
145
145
|
"disabled"
|
|
146
146
|
])])
|
|
147
147
|
]),
|
|
148
|
-
x(F).length && x(H) ? (v(), f(l, { key: 0 }, [p("label", null, [m(b(x(g)("platform.translation.source", "选择原文")), 1), h(x(
|
|
148
|
+
x(F).length && x(H) ? (v(), f(l, { key: 0 }, [p("label", null, [m(b(x(g)("platform.translation.source", "选择原文")), 1), h(x(r), {
|
|
149
149
|
value: x(N),
|
|
150
150
|
"onUpdate:value": t[3] ||= (e) => _(N) ? N.value = e : null,
|
|
151
151
|
options: W.value,
|
|
@@ -162,27 +162,27 @@ var T = { class: "configuration-translation" }, E = { class: "configuration-tran
|
|
|
162
162
|
t[7] ||= m(),
|
|
163
163
|
p("code", null, b(x(I).sourceId), 1)
|
|
164
164
|
]),
|
|
165
|
-
p("label", null, [m(b(x(g)("platform.translation.original", "原文")), 1), h(x(
|
|
165
|
+
p("label", null, [m(b(x(g)("platform.translation.original", "原文")), 1), h(x(a), {
|
|
166
166
|
value: x(I).originalText,
|
|
167
167
|
disabled: ""
|
|
168
168
|
}, null, 8, ["value"])]),
|
|
169
169
|
x(R) ? (v(), f("p", O, b(x(g)("platform.translation.review-required", "原文已变化,旧译文仅供复核参考:")) + b(x(R).publishedText ?? x(R).draftText), 1)) : d("v-if", !0),
|
|
170
|
-
p("label", null, [m(b(x(g)("platform.translation.draft", "译文草稿")), 1), h(x(
|
|
170
|
+
p("label", null, [m(b(x(g)("platform.translation.draft", "译文草稿")), 1), h(x(a), {
|
|
171
171
|
value: x(z),
|
|
172
172
|
"onUpdate:value": t[4] ||= (e) => _(z) ? z.value = e : null,
|
|
173
173
|
disabled: x(V) || x(y).can("saveTranslationDraft") !== !0
|
|
174
174
|
}, null, 8, ["value", "disabled"])]),
|
|
175
|
-
p("label", null, [m(b(x(g)("platform.translation.published", "已发布译文")), 1), h(x(
|
|
175
|
+
p("label", null, [m(b(x(g)("platform.translation.published", "已发布译文")), 1), h(x(a), {
|
|
176
176
|
value: x(L)?.publishedText ?? "",
|
|
177
177
|
disabled: ""
|
|
178
178
|
}, null, 8, ["value"])]),
|
|
179
|
-
p("div", k, [h(x(
|
|
179
|
+
p("div", k, [h(x(i), {
|
|
180
180
|
disabled: x(V) || !x(H) || !x(z).trim() || x(y).can("saveTranslationDraft") !== !0,
|
|
181
181
|
onClick: t[5] ||= (e) => G(x(j).save)
|
|
182
182
|
}, {
|
|
183
183
|
default: C(() => [m(b(x(g)("platform.translation.save-draft", "保存草稿")), 1)]),
|
|
184
184
|
_: 1
|
|
185
|
-
}, 8, ["disabled"]), h(x(
|
|
185
|
+
}, 8, ["disabled"]), h(x(i), {
|
|
186
186
|
disabled: x(V) || !x(H) || x(B) || !x(L) || x(y).can("publishTranslation") !== !0,
|
|
187
187
|
onClick: t[6] ||= (e) => G(x(j).publish)
|
|
188
188
|
}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./BusinessLogListDrawer-
|
|
1
|
+
import { no as e } from "./platform-components-D98pyZ77.js";
|
|
2
|
+
import { t } from "./BusinessLogListDrawer-DtSXpK6g.js";
|
|
3
3
|
import { createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/views/LoginAuditLogView.vue
|