@vtj/designer 0.12.1 → 0.12.3
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/README.md +46 -4
- package/dist/Editor-CG3BxbG_.js +4 -0
- package/dist/{index-DdUybOLe.js → index-DlUdx694.js} +445 -432
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
- package/types/framework/report.d.ts +1 -0
- package/types/version.d.ts +2 -2
- package/dist/Editor--u7oixuH.js +0 -4
@@ -1,14 +1,14 @@
|
|
1
1
|
var tl = Object.defineProperty;
|
2
2
|
var nl = (r, t, e) => t in r ? tl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
3
|
-
var
|
4
|
-
import { computed as V, unref as n, ref as C, watch as Z, reactive as zt, toValue as it, shallowRef as mt, shallowReadonly as sl, onMounted as
|
5
|
-
import { ElNotification as Rs, ElMessage as wt, ElMessageBox as Vt, ElButton as ve, ElDivider as rt, ElInput as Me, ElRadioGroup as Do, ElRadioButton as _n, ElButtonGroup as cl, ElSwitch as Is, ElImage as $o, ElDropdown as No, ElDropdownMenu as Po, ElDropdownItem as Nn, ElEmpty as
|
3
|
+
var X = (r, t, e) => nl(r, typeof t != "symbol" ? t + "" : t, e);
|
4
|
+
import { computed as V, unref as n, ref as C, watch as Z, reactive as zt, toValue as it, shallowRef as mt, shallowReadonly as sl, onMounted as tn, nextTick as at, getCurrentScope as ol, onScopeDispose as al, getCurrentInstance as As, toRaw as Ao, defineComponent as $, createElementBlock as R, openBlock as u, toDisplayString as ne, createVNode as p, withCtx as h, createElementVNode as T, createBlock as y, createCommentVNode as I, createTextVNode as Q, mergeProps as Pe, h as Ut, Fragment as q, renderList as se, normalizeClass as pe, defineAsyncComponent as ll, resolveDynamicComponent as Vo, createSlots as To, renderSlot as At, withDirectives as Ot, vShow as Zt, withModifiers as lt, isRef as Mn, normalizeStyle as rn, inject as Vs, provide as il, withKeys as yt, normalizeProps as Ro, guardReactiveProps as Io, onUnmounted as Ts, markRaw as ws, createApp as jo, shallowReactive as rl, triggerRef as Mt, KeepAlive as Oo } from "vue";
|
5
|
+
import { ElNotification as Rs, ElMessage as wt, ElMessageBox as Vt, ElButton as ve, ElDivider as rt, ElInput as Me, ElRadioGroup as Do, ElRadioButton as _n, ElButtonGroup as cl, ElSwitch as Is, ElImage as $o, ElDropdown as No, ElDropdownMenu as Po, ElDropdownItem as Nn, ElEmpty as Re, ElAlert as Ft, ElTooltip as Mo, ElTag as js, ElTree as Os, ElCollapse as Hn, ElCollapseItem as Gn, ElRow as Bn, ElCol as Ln, ElDrawer as Ds, ElForm as et, ElFormItem as cn, ElBreadcrumb as ul, ElBreadcrumbItem as dl, ElLoading as pl, ElBadge as ml, ElAvatar as qn, vLoading as vl, ElSelect as Bo, ElOption as Lo, ElCheckbox as gl, ElDialog as fl, ElSteps as hl, ElStep as ps, ElInputNumber as bl, ElColorPicker as yl, ElUpload as _l, ElSlider as wl, ElConfigProvider as kl, ElContainer as io, ElHeader as Sl, ElAside as ro, ElMain as xl, ElFooter as Cl } from "element-plus";
|
6
6
|
import El from "element-plus/es/locale/lang/zh-cn";
|
7
7
|
import { XDialogForm as Rt, XField as F, createDialog as zo, XIcon as Tt, XDialog as kt, XPanel as Kn, XAction as Ve, XTabs as Xn, XContainer as de, XForm as $s, XAttachment as Al, XActionBar as Uo, XInputUnit as Fo, vResizable as co } from "@vtj/ui";
|
8
|
-
import { kebabCase as Vl, jsonp as Lt, groupBy as kn, storage as
|
9
|
-
import { BUILT_IN_NAME as zn, isBlock as Te, DirectiveModel as Ho, createNodeFrom as Nl, BUILT_IN_VUE as uo, BUILT_IN_VUE_ROUTER as Pl, emitter as
|
10
|
-
import { parseExpression as xn, parseFunction as qo, BUILT_IN_DIRECTIVES as Xl, JSCodeToString as mn, LIFE_CYCLES_LIST as Ql, DATA_TYPES as Yl, createMock as Zl, isJSExpression as
|
11
|
-
import { VtjIconBack as ci, VtjIconPc as ui, VtjIconPhone as di, VtjIconPad as pi, VtjIconEdit as Ms, VtjIconUndo as mi, VtjIconRedo as vi, VtjIconTemplate as Un, VtjIconPreview as gi, VtjIconRefresh as Xo, VtjIconSetting as Qo, VtjIconAi as Bs, Download as Fn, VtjIconPublish as fi, VtjIconProject as hi, icons as xs, ArrowDown as Qn, Search as
|
8
|
+
import { kebabCase as Vl, jsonp as Lt, groupBy as kn, storage as dn, delay as pn, dataURLtoBlob as Tl, upperFirstCamelCase as Wo, toRawType as ms, cloneDeep as En, logger as Dt, isPlainObject as Rl, fileToBase64 as Il, merge as Ns, toArray as Ps, debounce as Jo, uuid as jl, getClientInfo as Ol, base64 as Dl, arrayToMap as $l } from "@vtj/utils";
|
9
|
+
import { BUILT_IN_NAME as zn, isBlock as Te, DirectiveModel as Ho, createNodeFrom as Nl, BUILT_IN_VUE as uo, BUILT_IN_VUE_ROUTER as Pl, emitter as De, EVENT_PROJECT_ACTIVED as ks, EVENT_NODE_CHANGE as Sn, NodeModel as vs, EVENT_BLOCK_CHANGE as Ss, Base as Go, BUILT_IN_LIBRARAY_MAP as Ml, ProjectModel as Bl, EVENT_PROJECT_CHANGE as Ll, EVENT_PROJECT_BLOCKS_CHANGE as zl, EVENT_PROJECT_PAGES_CHANGE as Ul, EVENT_PROJECT_DEPS_CHANGE as Fl, EVENT_PROJECT_PUBLISH as Wl, EVENT_PROJECT_FILE_PUBLISH as Jl, EVENT_HISTORY_CHANGE as Hl, EVENT_HISTORY_LOAD as Gl, EVENT_PROJECT_GEN_SOURCE as ql, BlockModel as gs, HistoryModel as Kl } from "@vtj/core";
|
10
|
+
import { parseExpression as xn, parseFunction as qo, BUILT_IN_DIRECTIVES as Xl, JSCodeToString as mn, LIFE_CYCLES_LIST as Ql, DATA_TYPES as Yl, createMock as Zl, isJSExpression as en, ContextMode as Ko, clearLoaderCache as ei, parseDeps as ti, createAssetsCss as ni, createAssetScripts as po, getRawComponent as mo, createSchemaApis as si, mockCleanup as oi, mockApis as ai, Provider as li, Access as ii, isJSFunction as ri } from "@vtj/renderer";
|
11
|
+
import { VtjIconBack as ci, VtjIconPc as ui, VtjIconPhone as di, VtjIconPad as pi, VtjIconEdit as Ms, VtjIconUndo as mi, VtjIconRedo as vi, VtjIconTemplate as Un, VtjIconPreview as gi, VtjIconRefresh as Xo, VtjIconSetting as Qo, VtjIconAi as Bs, Download as Fn, VtjIconPublish as fi, VtjIconProject as hi, icons as xs, ArrowDown as Qn, Search as nn, CopyDocument as Yo, Back as bi, VtjIconPlus as Zo, EditPen as yi, Delete as ea, VtjIconSave as _i, ArrowUp as ta, MoreFilled as gn, VtjIconCheck as na, VtjIconComponents as sa, VtjIconShare as wi, VtjIconHome as ki, VtjIconVisible as Si, VtjIconInvisible as oa, VtjIconUnlock as xi, VtjIconLock as aa, VtjIconRemove as Yn, VtjIconCopy as Ls, Files as Ci, VtjIconSearch as Ei, VtjIconHelp as la, VtjIconLayers as ia, Rank as Ai, VtjIconArrowUp as Vi, VtjIconArrowDown as Ti, IconDisplayBlock as Ri, IconDisplayFlex as Ii, IconDisplayInlineBlock as ji, IconDisplayInline as Oi, IconEyeInvisible as Di, IconFlexDirectionrow as $i, IconFlexDirectionrowReverse as Ni, IconFlexDirectioncolumn as Pi, IconFlexDirectioncolumnReverse as Mi, IconFlexJustifyflexStartrow as Bi, IconFlexJustifyflexEndrow as Li, IconFlexJustifycenterrow as zi, IconFlexJustifyspaceBetweenrow as Ui, IconFlexJustifyspaceAroundrow as Fi, IconFlexAlignflexStartrow as Wi, IconFlexAlignflexEndrow as Ji, IconFlexAligncenterrow as Hi, IconFlexAlignbaselinerow as Gi, IconFlexAlignstretchrow as qi, IconPositionTopLeft as Ki, IconPositionTopRight as Xi, IconPositionBottomLeft as Qi, IconPositionBottomRight as Yi, IconPositionLeft as Zi, IconPositionRight as er, IconPositionTop as tr, IconPositionBottom as nr, IconPositionAll as sr, IconTextAlignLeft as or, IconTextAlignCenter as ar, IconTextAlignRight as lr, IconTextAlignJustify as ir, IconFontStyleNone as rr, IconFontStyleItalic as cr, IconCross as ra, IconTextDecorationUnderline as ur, IconTextDecorationStrike as dr, IconTextDecorationOverline as pr, IconTileXy as mr, IconTileX as vr, IconTileY as gr, IconClose as fr, IconBorderAll as hr, IconBorderLeft as br, IconBorderTop as yr, IconBorderBottom as _r, IconBorderRight as wr, IconBorderStyleSolid as kr, IconBorderStyleDashed as Sr, IconBorderStyleDotted as xr, IconCursorAuto as Cr, IconCursorPointer as Er, IconCursorNotAllowed as Ar, IconCursorNone as Vr, ArrowRight as Tr, UserFilled as zs, VtjIconInfo as Rr, VtjIconNewChat as ca, Promotion as Ir, ArrowDownBold as jr, ArrowUpBold as Or, Refresh as Dr, View as ua, ShoppingCart as $r, Finished as Nr, Hide as Pr, Top as Mr, Bottom as Br, VtjIconChatRecord as Lr, VtjIconClose as zr, VtjIconDocument as Ur, VtjIconBlock as Fr, VtjIconOutline as Wr, VtjIconHistory as Jr, VtjIconApi as Hr, VtjIconCategory as Gr, VtjIconUniapp as qr, HomeFilled as Kr, Plus as Xr, Close as Qr, VtjIconVars as Yr, VtjIconSwitch as Zr, Switch as ec } from "@vtj/icons";
|
12
12
|
import tc from "html2canvas";
|
13
13
|
import da from "mockjs";
|
14
14
|
import { PAGE_LIFE_CYCLES_LIST as nc, APP_LIFE_CYCLE as sc, createUniAppComponent as oc, setupUniApp as ac } from "@vtj/uni";
|
@@ -18,10 +18,10 @@ import { editor as lc } from "monaco-editor";
|
|
18
18
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
19
19
|
* @name @vtj/designer
|
20
20
|
* @author CHC chenhuachun1549@dingtalk.com
|
21
|
-
* @version 0.12.
|
21
|
+
* @version 0.12.3
|
22
22
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
23
23
|
*/
|
24
|
-
const Cn = "0.12.
|
24
|
+
const Cn = "0.12.3", ic = {
|
25
25
|
width: 390,
|
26
26
|
height: 844
|
27
27
|
}, rc = {
|
@@ -513,7 +513,7 @@ function Rc(r) {
|
|
513
513
|
isExist: a
|
514
514
|
};
|
515
515
|
}
|
516
|
-
function
|
516
|
+
function un(r, t) {
|
517
517
|
return Vt.alert(r, {
|
518
518
|
title: "提示",
|
519
519
|
type: "warning",
|
@@ -598,7 +598,7 @@ function ma() {
|
|
598
598
|
backwardDisabled: c
|
599
599
|
};
|
600
600
|
}
|
601
|
-
function
|
601
|
+
function sn() {
|
602
602
|
const r = Be(), t = V(() => r.project.value);
|
603
603
|
return {
|
604
604
|
engine: r,
|
@@ -731,7 +731,7 @@ function Nc(r) {
|
|
731
731
|
};
|
732
732
|
}
|
733
733
|
function Pc() {
|
734
|
-
const { engine: r, project: t } =
|
734
|
+
const { engine: r, project: t } = sn(), e = V(() => t.value?.apis || []), s = V(() => t.value?.meta || []);
|
735
735
|
return {
|
736
736
|
engine: r,
|
737
737
|
project: t,
|
@@ -838,7 +838,7 @@ function Ht() {
|
|
838
838
|
},
|
839
839
|
body: JSON.stringify(z)
|
840
840
|
}).then((te) => te.json()).catch(() => null);
|
841
|
-
return P?.success || await
|
841
|
+
return P?.success || await un(P.message || "未知错误"), P;
|
842
842
|
},
|
843
843
|
getChats: async (z) => {
|
844
844
|
if (s?.getChats)
|
@@ -866,7 +866,7 @@ function Ht() {
|
|
866
866
|
},
|
867
867
|
body: JSON.stringify(z)
|
868
868
|
}).then((te) => te.json()).catch(() => null);
|
869
|
-
return P?.success || await
|
869
|
+
return P?.success || await un(P.message || "未知错误"), P;
|
870
870
|
},
|
871
871
|
removeTopic: async (z) => {
|
872
872
|
if (s?.removeTopic)
|
@@ -892,9 +892,9 @@ function Ht() {
|
|
892
892
|
L && L(null, !0);
|
893
893
|
break;
|
894
894
|
}
|
895
|
-
const
|
895
|
+
const tt = Ge.decode(qe).split(`
|
896
896
|
`);
|
897
|
-
for (const st of
|
897
|
+
for (const st of tt)
|
898
898
|
if (st.startsWith("data: "))
|
899
899
|
try {
|
900
900
|
const vt = JSON.parse(st.slice(6));
|
@@ -945,7 +945,7 @@ function Ht() {
|
|
945
945
|
const z = t?.getData()?.token, D = `${e}/api/open/order/${z}`, L = await window.fetch(D, {
|
946
946
|
method: "post"
|
947
947
|
}).then((P) => P.json()).catch(() => null);
|
948
|
-
return L?.success || await
|
948
|
+
return L?.success || await un(L.message || "未知错误"), L;
|
949
949
|
},
|
950
950
|
cancelOrder: async (z) => {
|
951
951
|
if (s?.cancelOrder)
|
@@ -1036,7 +1036,7 @@ function Fs(r) {
|
|
1036
1036
|
}
|
1037
1037
|
const Zn = typeof window < "u" && typeof document < "u";
|
1038
1038
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
1039
|
-
const Bc = (r) => typeof r < "u", Lc = Object.prototype.toString, zc = (r) => Lc.call(r) === "[object Object]",
|
1039
|
+
const Bc = (r) => typeof r < "u", Lc = Object.prototype.toString, zc = (r) => Lc.call(r) === "[object Object]", ln = () => {
|
1040
1040
|
}, Uc = /* @__PURE__ */ Fc();
|
1041
1041
|
function Fc() {
|
1042
1042
|
var r, t;
|
@@ -1059,7 +1059,7 @@ function Jc(r) {
|
|
1059
1059
|
return As();
|
1060
1060
|
}
|
1061
1061
|
function Hc(r, t = !0, e) {
|
1062
|
-
Jc() ?
|
1062
|
+
Jc() ? tn(r, e) : t ? r() : at(r);
|
1063
1063
|
}
|
1064
1064
|
function Gc(r, t, e = {}) {
|
1065
1065
|
const {
|
@@ -1139,11 +1139,11 @@ let ho = !1;
|
|
1139
1139
|
function Kc(r, t, e = {}) {
|
1140
1140
|
const { window: s = es, ignore: o = [], capture: i = !0, detectIframe: a = !1, controls: l = !1 } = e;
|
1141
1141
|
if (!s)
|
1142
|
-
return l ? { stop:
|
1142
|
+
return l ? { stop: ln, cancel: ln, trigger: ln } : ln;
|
1143
1143
|
if (Uc && !ho) {
|
1144
1144
|
ho = !0;
|
1145
1145
|
const w = { passive: !0 };
|
1146
|
-
Array.from(s.document.body.children).forEach((k) => Yt(k, "click",
|
1146
|
+
Array.from(s.document.body.children).forEach((k) => Yt(k, "click", ln, w)), Yt(s.document.documentElement, "click", ln, w);
|
1147
1147
|
}
|
1148
1148
|
let c = !0;
|
1149
1149
|
const d = (w) => it(o).some((k) => {
|
@@ -1203,7 +1203,7 @@ function Kc(r, t, e = {}) {
|
|
1203
1203
|
}
|
1204
1204
|
function Xc() {
|
1205
1205
|
const r = mt(!1), t = As();
|
1206
|
-
return t &&
|
1206
|
+
return t && tn(() => {
|
1207
1207
|
r.value = !0;
|
1208
1208
|
}, t), r;
|
1209
1209
|
}
|
@@ -1432,96 +1432,102 @@ function nu() {
|
|
1432
1432
|
createOrder: g,
|
1433
1433
|
cancelOrder: b,
|
1434
1434
|
getOrder: f
|
1435
|
-
} = Ht(), x = "CHAT_HIDE_CODE", w = t.skeleton?.getRegion("Apps").regionRef, k = C(!1), _ = C(!1), A = C(!0), E = C(!1), j = eu("LLM", e), O = C([]), B = C([]), N = C(null), W = C(null), z = C(), D = C(), L = C(!!
|
1436
|
-
const fe = await i(
|
1435
|
+
} = Ht(), x = "CHAT_HIDE_CODE", w = t.skeleton?.getRegion("Apps").regionRef, k = C(!1), _ = C(!1), A = C(!0), E = C(!1), j = eu("LLM", e), O = C([]), B = C([]), N = C(null), W = C(null), z = C(), D = C(), L = C(!!dn.get(x, { type: "local" })), P = C(""), te = C(), ue = V(() => B.value.some((J) => J.status === "Pending")), Ue = V(() => te.value ? te.value.mode === 2 && !te.value.invited : !0), { height: _e } = vn(z), be = async (J) => {
|
1436
|
+
const fe = await i(J);
|
1437
1437
|
fe && fe.success && (B.value = fe.data);
|
1438
|
-
}, Ge = async (
|
1439
|
-
if (k.value = !1, te.value = await m(), !te.value || !
|
1438
|
+
}, Ge = async (J) => {
|
1439
|
+
if (k.value = !1, te.value = await m(), !te.value || !J || J.id === N.value?.fileId) return;
|
1440
1440
|
O.value = [], B.value = [], A.value = !0;
|
1441
|
-
const fe = await o(
|
1441
|
+
const fe = await o(J.id).catch(() => null);
|
1442
1442
|
fe && fe.success && (O.value = fe.data), O.value.length && (A.value = !1, N.value = O.value[0], await be(N.value.id)), k.value = !0;
|
1443
|
-
}, Fe = async (
|
1443
|
+
}, Fe = async (J) => {
|
1444
1444
|
_.value = !0;
|
1445
|
-
const fe = await tu(
|
1446
|
-
if (_.value = !1,
|
1447
|
-
const { topic:
|
1448
|
-
B.value = [], O.value.unshift(
|
1445
|
+
const fe = await tu(J, t), Ie = await s(fe).catch(() => null);
|
1446
|
+
if (_.value = !1, Ie && Ie.success) {
|
1447
|
+
const { topic: nt, chat: Le } = Ie.data;
|
1448
|
+
B.value = [], O.value.unshift(nt), A.value = !1, N.value = nt;
|
1449
1449
|
const xt = zt(Le);
|
1450
1450
|
B.value.push(xt), vt(xt, (bn) => {
|
1451
|
-
|
1452
|
-
}), await
|
1451
|
+
J.auto && hn(bn);
|
1452
|
+
}), await pn(0), D.value && D.value.scrollToBottom();
|
1453
1453
|
} else
|
1454
1454
|
await Ge(null);
|
1455
|
-
return
|
1456
|
-
}, qe = async (
|
1455
|
+
return Ie;
|
1456
|
+
}, qe = async (J) => {
|
1457
1457
|
if (!N.value) return;
|
1458
1458
|
_.value = !0;
|
1459
1459
|
const fe = {
|
1460
1460
|
topicId: N.value.id,
|
1461
|
-
prompt:
|
1462
|
-
},
|
1463
|
-
if (_.value = !1,
|
1464
|
-
const
|
1465
|
-
B.value.push(
|
1466
|
-
|
1467
|
-
}), await
|
1461
|
+
prompt: J.prompt
|
1462
|
+
}, Ie = await a(fe).catch(() => null);
|
1463
|
+
if (_.value = !1, Ie && Ie.success) {
|
1464
|
+
const nt = zt(Ie.data);
|
1465
|
+
B.value.push(nt), vt(nt, (Le) => {
|
1466
|
+
J.auto && hn(Le);
|
1467
|
+
}), await pn(0), D.value && D.value.scrollToBottom();
|
1468
1468
|
} else
|
1469
1469
|
await Ge(null);
|
1470
|
-
return
|
1471
|
-
},
|
1472
|
-
const fe = await l(
|
1473
|
-
fe && fe.success && (O.value = O.value.filter((
|
1474
|
-
}, st = async (
|
1470
|
+
return Ie;
|
1471
|
+
}, tt = async (J) => {
|
1472
|
+
const fe = await l(J.id).catch(() => null);
|
1473
|
+
fe && fe.success && (O.value = O.value.filter((Ie) => Ie.id !== J.id), J.id === N.value?.id && (B.value = [], N.value = null, A.value = !0));
|
1474
|
+
}, st = async (J) => {
|
1475
1475
|
if (!N.value) return;
|
1476
|
-
const fe = N.value?.fileId,
|
1477
|
-
return await t.service.parseVue(
|
1476
|
+
const fe = N.value?.fileId, Ie = t.project.value?.toDsl(), { name: nt = "" } = t.current.value || {}, Le = ut(J.content);
|
1477
|
+
return await t.service.parseVue(Ie, {
|
1478
1478
|
id: fe,
|
1479
|
-
name:
|
1479
|
+
name: nt,
|
1480
1480
|
source: Le
|
1481
1481
|
});
|
1482
|
-
}, vt = (
|
1483
|
-
P.value = "",
|
1484
|
-
let
|
1485
|
-
const
|
1482
|
+
}, vt = (J, fe) => {
|
1483
|
+
P.value = "", J.content = "", J.reasoning = "", J.status = "Pending", J.reasoning = "", J.message = "";
|
1484
|
+
let Ie = 0;
|
1485
|
+
const nt = Date.now();
|
1486
1486
|
return c(
|
1487
|
-
|
1488
|
-
|
1487
|
+
J.topicId,
|
1488
|
+
J.id,
|
1489
1489
|
async (Le, xt) => {
|
1490
1490
|
const ft = Le?.choices?.[0]?.delta;
|
1491
1491
|
if (ft) {
|
1492
|
-
const $t = ft.content || "",
|
1493
|
-
$t && (
|
1492
|
+
const $t = ft.content || "", Ye = ft.reasoning_content || "";
|
1493
|
+
$t && (J.content += $t), Ye && (J.reasoning += Ye, Ie += Date.now() - nt);
|
1494
1494
|
}
|
1495
|
-
if (Le?.usage && (
|
1496
|
-
|
1497
|
-
const $t = await st(
|
1498
|
-
if (Array.isArray(
|
1499
|
-
|
1495
|
+
if (Le?.usage && (J.tokens = Le.usage.total_tokens || 0), xt && J.status === "Pending") {
|
1496
|
+
J.status = "Success", J.thinking = Math.ceil(Ie / 1e3), J.vue = ut(J.content);
|
1497
|
+
const $t = await st(J).catch((Ye) => {
|
1498
|
+
if (Array.isArray(Ye))
|
1499
|
+
J.message = Ye.join(`
|
1500
1500
|
`);
|
1501
1501
|
else {
|
1502
|
-
const Xt =
|
1503
|
-
|
1502
|
+
const Xt = Ye?.data || Ye?.message;
|
1503
|
+
J.message = Array.isArray(Xt) ? Xt.join(`
|
1504
1504
|
`) : "代码有错误。";
|
1505
1505
|
}
|
1506
|
-
return
|
1506
|
+
return J.status = "Error", null;
|
1507
1507
|
});
|
1508
|
-
|
1508
|
+
if ($t)
|
1509
|
+
try {
|
1510
|
+
J.dsl = $t;
|
1511
|
+
} catch (Ye) {
|
1512
|
+
J.status = "Error", J.message = Ye?.message;
|
1513
|
+
}
|
1514
|
+
await d(J), fe && fe(J);
|
1509
1515
|
}
|
1510
1516
|
},
|
1511
1517
|
async (Le) => {
|
1512
1518
|
const xt = Le.message || Le.name || "未知错误";
|
1513
|
-
|
1519
|
+
J.message = xt, J.status = "Failed", await d(J), fe && fe(J);
|
1514
1520
|
}
|
1515
1521
|
);
|
1516
|
-
}, ut = (
|
1522
|
+
}, ut = (J) => {
|
1517
1523
|
const fe = /```vue\n([\w\W]*)```/;
|
1518
|
-
return
|
1519
|
-
},
|
1524
|
+
return J.match(fe)?.[1] ?? "";
|
1525
|
+
}, on = async (J) => {
|
1520
1526
|
if (!N.value || !W.value) return;
|
1521
|
-
const fe = N.value?.fileId,
|
1527
|
+
const fe = N.value?.fileId, Ie = t.project.value?.toDsl(), { name: nt = "" } = t.current.value || {}, Le = await t.service.parseVue(Ie, {
|
1522
1528
|
id: fe,
|
1523
|
-
name:
|
1524
|
-
source:
|
1529
|
+
name: nt,
|
1530
|
+
source: J
|
1525
1531
|
}).catch((xt) => xt);
|
1526
1532
|
return Array.isArray(Le) ? Promise.reject(Le) : (W.value.dsl = Le, await d(W.value), Le);
|
1527
1533
|
}, fn = () => {
|
@@ -1529,41 +1535,41 @@ function nu() {
|
|
1529
1535
|
}, qt = () => {
|
1530
1536
|
D.value && !A.value && D.value.scrollToBottom();
|
1531
1537
|
}, gt = () => {
|
1532
|
-
A.value || ue.value || B.value.map((
|
1533
|
-
|
1538
|
+
A.value || ue.value || B.value.map((J) => {
|
1539
|
+
J.collapsed = !1;
|
1534
1540
|
});
|
1535
1541
|
}, We = () => {
|
1536
|
-
A.value || ue.value || B.value.map((
|
1537
|
-
|
1542
|
+
A.value || ue.value || B.value.map((J) => {
|
1543
|
+
J.collapsed = !0;
|
1538
1544
|
});
|
1539
|
-
}, Kt = (
|
1545
|
+
}, Kt = (J) => {
|
1540
1546
|
if (!ue.value)
|
1541
|
-
return vt(
|
1542
|
-
}, hn = (
|
1543
|
-
|
1544
|
-
}, ns = (
|
1545
|
-
|
1546
|
-
}, ss = (
|
1547
|
+
return vt(J);
|
1548
|
+
}, hn = (J) => {
|
1549
|
+
J.dsl && t.applyAI(J.dsl), E.value = !1, W.value = null;
|
1550
|
+
}, ns = (J) => {
|
1551
|
+
J.vue = ut(J.content), W.value = J, E.value = !0;
|
1552
|
+
}, ss = (J) => {
|
1547
1553
|
if (!N.value) return;
|
1548
|
-
const fe =
|
1549
|
-
${
|
1554
|
+
const fe = J.message ? `页面存在以下问题:
|
1555
|
+
${J.message}
|
1550
1556
|
请检查代码并修复` : "请检查代码是否有错误,是否符合规则要求,并改正";
|
1551
1557
|
Vn(fe);
|
1552
|
-
}, Vn = (
|
1553
|
-
P.value =
|
1558
|
+
}, Vn = (J, fe) => {
|
1559
|
+
P.value = J, fe && (A.value = fe);
|
1554
1560
|
}, os = () => {
|
1555
|
-
A.value || (L.value = !L.value,
|
1561
|
+
A.value || (L.value = !L.value, dn.save(x, L.value, { type: "local" }));
|
1556
1562
|
};
|
1557
1563
|
return Z(
|
1558
1564
|
() => w?.active,
|
1559
|
-
(
|
1560
|
-
|
1565
|
+
(J) => {
|
1566
|
+
J.name === "AI" && Ge(t.current.value);
|
1561
1567
|
},
|
1562
1568
|
{
|
1563
1569
|
immediate: !0
|
1564
1570
|
}
|
1565
|
-
), Z(t.current, (
|
1566
|
-
|
1571
|
+
), Z(t.current, (J, fe) => {
|
1572
|
+
J?.id !== fe?.id && (N.value = null);
|
1567
1573
|
}), Z(_e, () => {
|
1568
1574
|
D.value && ue.value && D.value.autoScrollToBottom();
|
1569
1575
|
}), {
|
@@ -1580,7 +1586,7 @@ function nu() {
|
|
1580
1586
|
currentTopic: N,
|
1581
1587
|
onPostChat: qe,
|
1582
1588
|
loadChats: be,
|
1583
|
-
onRemoveTopic:
|
1589
|
+
onRemoveTopic: tt,
|
1584
1590
|
getVueCode: ut,
|
1585
1591
|
vue2Dsl: st,
|
1586
1592
|
onRefresh: Kt,
|
@@ -1606,7 +1612,7 @@ function nu() {
|
|
1606
1612
|
createOrder: g,
|
1607
1613
|
cancelOrder: b,
|
1608
1614
|
getOrder: f,
|
1609
|
-
updateChatDsl:
|
1615
|
+
updateChatDsl: on
|
1610
1616
|
};
|
1611
1617
|
}
|
1612
1618
|
const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e", ou = ["title", "src"], au = { key: 1 }, lu = /* @__PURE__ */ $({
|
@@ -1970,7 +1976,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1970
1976
|
const t = r, { engine: e, designer: s } = St(), { isLogined: o, toRemoteAuth: i } = Ht(), a = C(!1), l = C(!1), c = C(), d = () => {
|
1971
1977
|
e.current.value ? (a.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (s.value?.setSelected(null), e.simulator.refresh()), Ne("刷新完成", "success")) : Ne("请先打开文件", "warning");
|
1972
1978
|
}, v = async () => {
|
1973
|
-
e.current.value ? (a.value && (e.skeleton?.closePreview(), a.value = !1, await
|
1979
|
+
e.current.value ? (a.value && (e.skeleton?.closePreview(), a.value = !1, await pn(1e3)), s.value?.setSelected(e.current.value)) : Ne("请先打开文件", "warning");
|
1974
1980
|
}, m = () => {
|
1975
1981
|
if (e.project.value)
|
1976
1982
|
if (e.current.value) {
|
@@ -2097,7 +2103,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2097
2103
|
type: "success"
|
2098
2104
|
}, {
|
2099
2105
|
default: h(() => _[1] || (_[1] = [
|
2100
|
-
|
2106
|
+
Q(" 出码 ")
|
2101
2107
|
])),
|
2102
2108
|
_: 1
|
2103
2109
|
}, 8, ["icon"])) : I("", !0),
|
@@ -2109,7 +2115,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2109
2115
|
type: "primary"
|
2110
2116
|
}, {
|
2111
2117
|
default: h(() => _[2] || (_[2] = [
|
2112
|
-
|
2118
|
+
Q(" 发布模板 ")
|
2113
2119
|
])),
|
2114
2120
|
_: 1
|
2115
2121
|
}, 8, ["icon"])) : (u(), y(n(No), {
|
@@ -2128,7 +2134,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2128
2134
|
icon: n(fi)
|
2129
2135
|
}, {
|
2130
2136
|
default: h(() => _[3] || (_[3] = [
|
2131
|
-
|
2137
|
+
Q(" 发布文件 ")
|
2132
2138
|
])),
|
2133
2139
|
_: 1
|
2134
2140
|
}, 8, ["icon"]),
|
@@ -2137,7 +2143,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2137
2143
|
icon: n(hi)
|
2138
2144
|
}, {
|
2139
2145
|
default: h(() => _[4] || (_[4] = [
|
2140
|
-
|
2146
|
+
Q(" 整站发布 ")
|
2141
2147
|
])),
|
2142
2148
|
_: 1
|
2143
2149
|
}, 8, ["icon"]),
|
@@ -2148,7 +2154,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2148
2154
|
divided: ""
|
2149
2155
|
}, {
|
2150
2156
|
default: h(() => _[5] || (_[5] = [
|
2151
|
-
|
2157
|
+
Q(" 发布模板 ")
|
2152
2158
|
])),
|
2153
2159
|
_: 1
|
2154
2160
|
}, 8, ["icon"])) : I("", !0)
|
@@ -2224,7 +2230,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2224
2230
|
onClick: m
|
2225
2231
|
}, {
|
2226
2232
|
default: h(() => f[2] || (f[2] = [
|
2227
|
-
|
2233
|
+
Q(" 清除绑定 ")
|
2228
2234
|
])),
|
2229
2235
|
_: 1
|
2230
2236
|
})
|
@@ -2233,7 +2239,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2233
2239
|
T("div", Eu, [
|
2234
2240
|
p(n(Me), {
|
2235
2241
|
size: e.size,
|
2236
|
-
"prefix-icon": n(
|
2242
|
+
"prefix-icon": n(nn),
|
2237
2243
|
clearable: "",
|
2238
2244
|
modelValue: a.value,
|
2239
2245
|
"onUpdate:modelValue": f[0] || (f[0] = (x) => a.value = x),
|
@@ -2245,7 +2251,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2245
2251
|
onClick: (w) => d(x[0]),
|
2246
2252
|
class: pe({ "is-active": i.value === x[0] })
|
2247
2253
|
}, null, 8, ["icon", "onClick", "class"]))), 256)),
|
2248
|
-
c.value.length === 0 ? (u(), y(n(
|
2254
|
+
c.value.length === 0 ? (u(), y(n(Re), { key: 0 })) : I("", !0)
|
2249
2255
|
])
|
2250
2256
|
])
|
2251
2257
|
]),
|
@@ -2254,7 +2260,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2254
2260
|
]));
|
2255
2261
|
}
|
2256
2262
|
}), Ae = ll({
|
2257
|
-
loader: () => import("./Editor
|
2263
|
+
loader: () => import("./Editor-CG3BxbG_.js"),
|
2258
2264
|
loadingComponent: $({
|
2259
2265
|
render() {
|
2260
2266
|
return Ut("div", "正在拼命加载...");
|
@@ -2273,7 +2279,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2273
2279
|
parentId: {}
|
2274
2280
|
},
|
2275
2281
|
setup(r) {
|
2276
|
-
const t = r, { project: e, engine: s } =
|
2282
|
+
const t = r, { project: e, engine: s } = sn(), { designer: o } = St(), i = V(() => t.item ? "编辑页面" : "新增页面"), a = V(() => {
|
2277
2283
|
const { platform: _ = "web" } = e.value || {};
|
2278
2284
|
return _ === "web";
|
2279
2285
|
}), l = V(() => {
|
@@ -2352,7 +2358,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2352
2358
|
editor: h(() => [
|
2353
2359
|
p(n(Ft), { closable: !1 }, {
|
2354
2360
|
default: h(() => [
|
2355
|
-
|
2361
|
+
Q(ne(`${n(s).options.pageBasePath || ""}/${c.value}/${v.value.id}`) + " ", 1),
|
2356
2362
|
p(n(Tt), {
|
2357
2363
|
icon: n(Yo),
|
2358
2364
|
onClick: A[0] || (A[0] = (E) => k(
|
@@ -2768,7 +2774,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2768
2774
|
"is-checked": v.checked
|
2769
2775
|
})
|
2770
2776
|
}, null, 8, ["class"])) : I("", !0),
|
2771
|
-
|
2777
|
+
Q(" " + ne(v.label), 1)
|
2772
2778
|
])
|
2773
2779
|
]),
|
2774
2780
|
_: 1
|
@@ -2924,7 +2930,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2924
2930
|
type: s.tagType
|
2925
2931
|
}, {
|
2926
2932
|
default: h(() => [
|
2927
|
-
|
2933
|
+
Q(ne(s.tag), 1)
|
2928
2934
|
]),
|
2929
2935
|
_: 1
|
2930
2936
|
}, 8, ["type"])) : I("", !0),
|
@@ -3138,13 +3144,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3138
3144
|
"onUpdate:modelValue": f[0] || (f[0] = (x) => i.value = x),
|
3139
3145
|
size: "small",
|
3140
3146
|
clearable: "",
|
3141
|
-
"prefix-icon": n(
|
3147
|
+
"prefix-icon": n(nn),
|
3142
3148
|
placeholder: "筛选可用项"
|
3143
3149
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
3144
3150
|
T("div", Lu, [
|
3145
3151
|
p(n(rt), { "border-style": "dotted" }, {
|
3146
3152
|
default: h(() => f[1] || (f[1] = [
|
3147
|
-
|
3153
|
+
Q("可用项")
|
3148
3154
|
])),
|
3149
3155
|
_: 1
|
3150
3156
|
}),
|
@@ -3173,7 +3179,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3173
3179
|
}, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
|
3174
3180
|
]),
|
3175
3181
|
empty: h(() => [
|
3176
|
-
p(n(
|
3182
|
+
p(n(Re), { class: "empty-wrapper" })
|
3177
3183
|
]),
|
3178
3184
|
_: 1
|
3179
3185
|
}, 8, ["props"])) : I("", !0)
|
@@ -3272,13 +3278,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3272
3278
|
"onUpdate:modelValue": _[0] || (_[0] = (A) => Mn(i) ? i.value = A : null),
|
3273
3279
|
size: "small",
|
3274
3280
|
clearable: "",
|
3275
|
-
"prefix-icon": n(
|
3281
|
+
"prefix-icon": n(nn),
|
3276
3282
|
placeholder: "筛选可用项"
|
3277
3283
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
3278
3284
|
(u(!0), R(q, null, se(n(o), (A) => (u(), R("div", null, [
|
3279
3285
|
p(n(rt), { "border-style": "dotted" }, {
|
3280
3286
|
default: h(() => [
|
3281
|
-
|
3287
|
+
Q(ne(A.title), 1)
|
3282
3288
|
]),
|
3283
3289
|
_: 2
|
3284
3290
|
}, 1024),
|
@@ -3291,7 +3297,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3291
3297
|
onAction: (j) => w(E)
|
3292
3298
|
}, null, 8, ["title", "onClick", "onAction"]))), 256))
|
3293
3299
|
]))), 256)),
|
3294
|
-
n(o).length ? I("", !0) : (u(), y(n(
|
3300
|
+
n(o).length ? I("", !0) : (u(), y(n(Re), { key: 0 }))
|
3295
3301
|
], 512), [
|
3296
3302
|
[Zt, c.value === "normal"]
|
3297
3303
|
]),
|
@@ -3328,7 +3334,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3328
3334
|
onClick: g
|
3329
3335
|
}, {
|
3330
3336
|
default: h(() => _[2] || (_[2] = [
|
3331
|
-
|
3337
|
+
Q(" 移除绑定 ")
|
3332
3338
|
])),
|
3333
3339
|
_: 1
|
3334
3340
|
})) : I("", !0)
|
@@ -3343,7 +3349,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3343
3349
|
onClick: b
|
3344
3350
|
}, {
|
3345
3351
|
default: h(() => _[3] || (_[3] = [
|
3346
|
-
|
3352
|
+
Q(" 取消 ")
|
3347
3353
|
])),
|
3348
3354
|
_: 1
|
3349
3355
|
}),
|
@@ -3353,7 +3359,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3353
3359
|
onClick: f
|
3354
3360
|
}, {
|
3355
3361
|
default: h(() => _[4] || (_[4] = [
|
3356
|
-
|
3362
|
+
Q(" 确定 ")
|
3357
3363
|
])),
|
3358
3364
|
_: 1
|
3359
3365
|
})
|
@@ -3435,7 +3441,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3435
3441
|
}, {
|
3436
3442
|
default: h(() => [
|
3437
3443
|
T("span", Fu, "#" + ne(m + 1), 1),
|
3438
|
-
|
3444
|
+
Q(" " + ne(v.name), 1)
|
3439
3445
|
]),
|
3440
3446
|
_: 2
|
3441
3447
|
}, 1032, ["class", "onClick"]))), 256))
|
@@ -3473,7 +3479,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3473
3479
|
});
|
3474
3480
|
return (a, l) => (u(), R("div", {
|
3475
3481
|
class: pe(["v-viewport", e.value]),
|
3476
|
-
style:
|
3482
|
+
style: rn(i.value)
|
3477
3483
|
}, [
|
3478
3484
|
At(a.$slots, "default")
|
3479
3485
|
], 6));
|
@@ -3497,7 +3503,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3497
3503
|
name: "PagesWidget",
|
3498
3504
|
__name: "index",
|
3499
3505
|
setup(r) {
|
3500
|
-
const { project: t, engine: e } =
|
3506
|
+
const { project: t, engine: e } = sn(), s = V(() => t.value?.pages || []), { current: o } = Qe(), i = C(!1), a = C(), l = C(), c = V(() => `(共 ${s.value.length} 项)`), d = V(() => {
|
3501
3507
|
const { platform: w = "web" } = t.value || {};
|
3502
3508
|
return w === "uniapp";
|
3503
3509
|
}), v = (w) => {
|
@@ -3592,7 +3598,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3592
3598
|
},
|
3593
3599
|
emits: ["change", "update:modelValue"],
|
3594
3600
|
setup(r, { emit: t }) {
|
3595
|
-
const e = r, s = t, { engine: o, project: i } =
|
3601
|
+
const e = r, s = t, { engine: o, project: i } = sn(), a = C([]), l = C(!1), c = (_) => Array.isArray(_) ? _.map((A) => ({
|
3596
3602
|
name: A.filename,
|
3597
3603
|
url: A.filepath
|
3598
3604
|
})) : _ ? { name: _.filename, url: _.filepath } : null, d = async (_) => {
|
@@ -3657,7 +3663,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3657
3663
|
onClick: x
|
3658
3664
|
}, {
|
3659
3665
|
default: h(() => A[3] || (A[3] = [
|
3660
|
-
|
3666
|
+
Q(" 清除 ")
|
3661
3667
|
])),
|
3662
3668
|
_: 1
|
3663
3669
|
})
|
@@ -3781,7 +3787,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3781
3787
|
size: "small",
|
3782
3788
|
modelValue: o.value,
|
3783
3789
|
"onUpdate:modelValue": te[0] || (te[0] = (ue) => o.value = ue),
|
3784
|
-
"prefix-icon": n(
|
3790
|
+
"prefix-icon": n(nn),
|
3785
3791
|
placeholder: "搜索区块",
|
3786
3792
|
clearable: ""
|
3787
3793
|
}, null, 8, ["modelValue", "prefix-icon"])
|
@@ -3832,7 +3838,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3832
3838
|
}, 1032, ["name", "title"]))), 256))
|
3833
3839
|
]),
|
3834
3840
|
_: 1
|
3835
|
-
}, 8, ["model-value"])) : (u(), y(n(
|
3841
|
+
}, 8, ["model-value"])) : (u(), y(n(Re), {
|
3836
3842
|
key: 0,
|
3837
3843
|
description: "找不到符合条件的区块"
|
3838
3844
|
})),
|
@@ -3957,7 +3963,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3957
3963
|
]),
|
3958
3964
|
_: 1
|
3959
3965
|
}),
|
3960
|
-
n(c).length ? I("", !0) : (u(), y(n(
|
3966
|
+
n(c).length ? I("", !0) : (u(), y(n(Re), { key: 0 }))
|
3961
3967
|
])) : (u(), y(n(Xn), {
|
3962
3968
|
key: 1,
|
3963
3969
|
items: n(s),
|
@@ -4233,7 +4239,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4233
4239
|
onRemove: a
|
4234
4240
|
}, {
|
4235
4241
|
default: h(() => [
|
4236
|
-
n(s) === 0 ? (u(), y(n(
|
4242
|
+
n(s) === 0 ? (u(), y(n(Re), {
|
4237
4243
|
key: 0,
|
4238
4244
|
"image-size": 50
|
4239
4245
|
})) : I("", !0),
|
@@ -4556,7 +4562,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4556
4562
|
onClick: f
|
4557
4563
|
}, {
|
4558
4564
|
default: h(() => w[2] || (w[2] = [
|
4559
|
-
|
4565
|
+
Q(" 预览 ")
|
4560
4566
|
])),
|
4561
4567
|
_: 1
|
4562
4568
|
}, 8, ["disabled"])) : I("", !0)
|
@@ -4564,7 +4570,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4564
4570
|
T("div", null, [
|
4565
4571
|
p(n(ve), { onClick: m }, {
|
4566
4572
|
default: h(() => w[3] || (w[3] = [
|
4567
|
-
|
4573
|
+
Q("取消")
|
4568
4574
|
])),
|
4569
4575
|
_: 1
|
4570
4576
|
}),
|
@@ -4573,7 +4579,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4573
4579
|
onClick: g
|
4574
4580
|
}, {
|
4575
4581
|
default: h(() => w[4] || (w[4] = [
|
4576
|
-
|
4582
|
+
Q("保存")
|
4577
4583
|
])),
|
4578
4584
|
_: 1
|
4579
4585
|
})
|
@@ -4638,7 +4644,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4638
4644
|
name: "ApisWidget",
|
4639
4645
|
__name: "index",
|
4640
4646
|
setup(r) {
|
4641
|
-
const { project: t } =
|
4647
|
+
const { project: t } = sn(), e = C(!1), s = C(null), o = C(""), i = C(!1), a = V(() => {
|
4642
4648
|
const x = t.value?.apis || [];
|
4643
4649
|
return o.value ? x.filter((w) => w.name.includes(o.value) || w.label?.includes(o.value) || w.url.includes(o.value)) : x;
|
4644
4650
|
}), l = V(
|
@@ -4698,7 +4704,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4698
4704
|
size: "small",
|
4699
4705
|
modelValue: o.value,
|
4700
4706
|
"onUpdate:modelValue": w[0] || (w[0] = (k) => o.value = k),
|
4701
|
-
"prefix-icon": n(
|
4707
|
+
"prefix-icon": n(nn),
|
4702
4708
|
placeholder: "搜索API",
|
4703
4709
|
clearable: ""
|
4704
4710
|
}, null, 8, ["modelValue", "prefix-icon"])
|
@@ -4729,7 +4735,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4729
4735
|
]),
|
4730
4736
|
_: 1
|
4731
4737
|
}, 8, ["model-value"]),
|
4732
|
-
a.value.length === 0 ? (u(), y(n(
|
4738
|
+
a.value.length === 0 ? (u(), y(n(Re), {
|
4733
4739
|
key: 0,
|
4734
4740
|
"image-size": 50
|
4735
4741
|
})) : I("", !0),
|
@@ -4988,24 +4994,24 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4988
4994
|
n(A) ? (u(), R("div", {
|
4989
4995
|
key: 0,
|
4990
4996
|
class: pe(["v-designer__dropping", "is-inner"]),
|
4991
|
-
style:
|
4997
|
+
style: rn(n(A).style)
|
4992
4998
|
}, null, 4)) : I("", !0),
|
4993
4999
|
n(_) ? (u(), R("div", {
|
4994
5000
|
key: 1,
|
4995
5001
|
class: "v-designer__hover",
|
4996
|
-
style:
|
5002
|
+
style: rn(n(_).style)
|
4997
5003
|
}, [
|
4998
5004
|
T("span", {
|
4999
5005
|
class: pe(`is-${n(_).position}`)
|
5000
5006
|
}, [
|
5001
|
-
|
5007
|
+
Q(ne(n(_).model.name) + ": ", 1),
|
5002
5008
|
T("i", null, ne(n(_).model.id), 1)
|
5003
5009
|
], 2)
|
5004
5010
|
], 4)) : I("", !0),
|
5005
5011
|
n(E) ? (u(), R("div", {
|
5006
5012
|
key: 2,
|
5007
5013
|
class: "v-designer__selected",
|
5008
|
-
style:
|
5014
|
+
style: rn(n(E).style)
|
5009
5015
|
}, [
|
5010
5016
|
p(dd, {
|
5011
5017
|
position: n(E).position,
|
@@ -5016,13 +5022,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5016
5022
|
onDragend: N
|
5017
5023
|
}, null, 8, ["position", "model", "path"])
|
5018
5024
|
], 4)) : I("", !0),
|
5019
|
-
n(v) ? I("", !0) : (u(), y(n(
|
5025
|
+
n(v) ? I("", !0) : (u(), y(n(Re), {
|
5020
5026
|
key: 3,
|
5021
5027
|
description: "请新建或打开文件"
|
5022
5028
|
})),
|
5023
5029
|
f.value && n(j).length ? (u(), R("div", pd, [
|
5024
5030
|
(u(!0), R(q, null, se(n(j), (D) => (u(), R("div", {
|
5025
|
-
style:
|
5031
|
+
style: rn(D)
|
5026
5032
|
}, null, 4))), 256))
|
5027
5033
|
])) : I("", !0),
|
5028
5034
|
n(v) && n(m) ? (u(), R("div", md, " 您可以拖拽组件放置到这里 ")) : I("", !0),
|
@@ -5089,7 +5095,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5089
5095
|
onAction: (k) => d(w, k),
|
5090
5096
|
onClick: (k) => m(w)
|
5091
5097
|
}, null, 8, ["title", "onAction", "onClick"]))), 256)),
|
5092
|
-
f.list.length ? I("", !0) : (u(), y(n(
|
5098
|
+
f.list.length ? I("", !0) : (u(), y(n(Re), {
|
5093
5099
|
key: 0,
|
5094
5100
|
"image-size": 40
|
5095
5101
|
})),
|
@@ -5461,7 +5467,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5461
5467
|
fit: !1
|
5462
5468
|
}, {
|
5463
5469
|
default: h(() => [
|
5464
|
-
p(n(
|
5470
|
+
p(n(et), {
|
5465
5471
|
class: "v-properties-widget__form",
|
5466
5472
|
size: "small",
|
5467
5473
|
"label-position": "right",
|
@@ -5718,7 +5724,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5718
5724
|
fit: !1
|
5719
5725
|
}, {
|
5720
5726
|
default: h(() => [
|
5721
|
-
n(a).length ? I("", !0) : (u(), y(n(
|
5727
|
+
n(a).length ? I("", !0) : (u(), y(n(Re), {
|
5722
5728
|
key: 0,
|
5723
5729
|
"image-size": 50,
|
5724
5730
|
description: "该组件无自带事件"
|
@@ -5859,7 +5865,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5859
5865
|
fit: !1
|
5860
5866
|
}, {
|
5861
5867
|
default: h(() => [
|
5862
|
-
p(n(
|
5868
|
+
p(n(et), {
|
5863
5869
|
size: "small",
|
5864
5870
|
"label-width": "80px",
|
5865
5871
|
onKeydown: A[0] || (A[0] = yt(lt(() => {
|
@@ -5915,7 +5921,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5915
5921
|
fit: !1
|
5916
5922
|
}, {
|
5917
5923
|
default: h(() => [
|
5918
|
-
p(n(
|
5924
|
+
p(n(et), {
|
5919
5925
|
size: "small",
|
5920
5926
|
"label-width": "80px",
|
5921
5927
|
onKeydown: A[1] || (A[1] = yt(lt(() => {
|
@@ -5978,7 +5984,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5978
5984
|
fit: !1
|
5979
5985
|
}, {
|
5980
5986
|
default: h(() => [
|
5981
|
-
p(n(
|
5987
|
+
p(n(et), {
|
5982
5988
|
size: "small",
|
5983
5989
|
"label-width": "60px",
|
5984
5990
|
onKeydown: A[2] || (A[2] = yt(lt(() => {
|
@@ -6000,7 +6006,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6000
6006
|
]),
|
6001
6007
|
_: 2
|
6002
6008
|
}, 1032, ["title"]))), 256)),
|
6003
|
-
n(d).length ? I("", !0) : (u(), y(n(
|
6009
|
+
n(d).length ? I("", !0) : (u(), y(n(Re), {
|
6004
6010
|
key: 0,
|
6005
6011
|
description: "当前组件没有双向绑定属性",
|
6006
6012
|
"image-size": 50
|
@@ -6031,7 +6037,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6031
6037
|
onRemove: (O) => n(x)(E)
|
6032
6038
|
}, {
|
6033
6039
|
default: h(() => [
|
6034
|
-
p(n(
|
6040
|
+
p(n(et), {
|
6035
6041
|
size: "small",
|
6036
6042
|
"label-width": "60px",
|
6037
6043
|
onKeydown: A[3] || (A[3] = yt(lt(() => {
|
@@ -6393,7 +6399,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6393
6399
|
onClick: (te) => k(P),
|
6394
6400
|
onAction: w
|
6395
6401
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
6396
|
-
s.value.length ? I("", !0) : (u(), y(n(
|
6402
|
+
s.value.length ? I("", !0) : (u(), y(n(Re), {
|
6397
6403
|
key: 0,
|
6398
6404
|
"image-size": 50
|
6399
6405
|
})),
|
@@ -6425,7 +6431,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6425
6431
|
onClick: (te) => A(P),
|
6426
6432
|
onAction: E
|
6427
6433
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
6428
|
-
o.value.length ? I("", !0) : (u(), y(n(
|
6434
|
+
o.value.length ? I("", !0) : (u(), y(n(Re), {
|
6429
6435
|
key: 0,
|
6430
6436
|
"image-size": 50
|
6431
6437
|
})),
|
@@ -6457,7 +6463,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6457
6463
|
onClick: (te) => O(P),
|
6458
6464
|
onAction: B
|
6459
6465
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
6460
|
-
i.value.length ? I("", !0) : (u(), y(n(
|
6466
|
+
i.value.length ? I("", !0) : (u(), y(n(Re), {
|
6461
6467
|
key: 0,
|
6462
6468
|
"image-size": 50
|
6463
6469
|
})),
|
@@ -6490,7 +6496,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6490
6496
|
onClick: (te) => W(P),
|
6491
6497
|
onAction: z
|
6492
6498
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
6493
|
-
a.value.length ? I("", !0) : (u(), y(n(
|
6499
|
+
a.value.length ? I("", !0) : (u(), y(n(Re), {
|
6494
6500
|
key: 0,
|
6495
6501
|
"image-size": 50
|
6496
6502
|
})),
|
@@ -6654,7 +6660,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6654
6660
|
onClick: A
|
6655
6661
|
}, {
|
6656
6662
|
default: h(() => j[4] || (j[4] = [
|
6657
|
-
|
6663
|
+
Q(" 运行测试用例 ")
|
6658
6664
|
])),
|
6659
6665
|
_: 1
|
6660
6666
|
}, 8, ["loading"])
|
@@ -6682,7 +6688,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6682
6688
|
onChange: k
|
6683
6689
|
}, {
|
6684
6690
|
option: h(({ option: O }) => [
|
6685
|
-
|
6691
|
+
Q(ne(O.label) + " ", 1),
|
6686
6692
|
T("i", null, "[ " + ne(O.data.name || O.data.code) + " ]", 1)
|
6687
6693
|
]),
|
6688
6694
|
_: 1
|
@@ -6819,7 +6825,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6819
6825
|
onAction: d,
|
6820
6826
|
onClick: (b) => c(g)
|
6821
6827
|
}, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 256)),
|
6822
|
-
i.value.length ? I("", !0) : (u(), y(n(
|
6828
|
+
i.value.length ? I("", !0) : (u(), y(n(Re), {
|
6823
6829
|
key: 0,
|
6824
6830
|
"image-size": 50
|
6825
6831
|
}))
|
@@ -6976,7 +6982,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6976
6982
|
collapsable: ""
|
6977
6983
|
}, {
|
6978
6984
|
default: h(() => [
|
6979
|
-
p(n(
|
6985
|
+
p(n(et), {
|
6980
6986
|
size: "small",
|
6981
6987
|
"label-width": "80px"
|
6982
6988
|
}, {
|
@@ -7042,7 +7048,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7042
7048
|
const { selected: t } = St(), e = C(), s = V(() => {
|
7043
7049
|
const c = t.value?.model || null;
|
7044
7050
|
return Te(c) ? null : c;
|
7045
|
-
}), o = V(() => s.value?.getPropValue("style") || {}), i = V(() =>
|
7051
|
+
}), o = V(() => s.value?.getPropValue("style") || {}), i = V(() => en(o.value) ? JSON.stringify({}) : JSON.stringify(Cs(o.value), null, 2)), a = (c) => {
|
7046
7052
|
try {
|
7047
7053
|
const d = Cs(JSON.parse(c));
|
7048
7054
|
s.value?.setProp("style", d);
|
@@ -7171,7 +7177,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7171
7177
|
onClick: m
|
7172
7178
|
}, {
|
7173
7179
|
default: h(() => f[2] || (f[2] = [
|
7174
|
-
|
7180
|
+
Q(" 确定 ")
|
7175
7181
|
])),
|
7176
7182
|
_: 1
|
7177
7183
|
}),
|
@@ -7182,7 +7188,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7182
7188
|
onClick: g
|
7183
7189
|
}, {
|
7184
7190
|
default: h(() => f[3] || (f[3] = [
|
7185
|
-
|
7191
|
+
Q(" 重置 ")
|
7186
7192
|
])),
|
7187
7193
|
_: 1
|
7188
7194
|
})
|
@@ -7633,7 +7639,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7633
7639
|
collapsable: ""
|
7634
7640
|
}, {
|
7635
7641
|
default: h(() => [
|
7636
|
-
p(n(
|
7642
|
+
p(n(et), {
|
7637
7643
|
class: "v-style-widget__sizing",
|
7638
7644
|
size: "small",
|
7639
7645
|
"label-width": "60px",
|
@@ -7693,7 +7699,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7693
7699
|
}, {
|
7694
7700
|
default: h(() => [
|
7695
7701
|
T("div", mp, [
|
7696
|
-
p(n(
|
7702
|
+
p(n(et), {
|
7697
7703
|
"label-width": "60px",
|
7698
7704
|
size: "small"
|
7699
7705
|
}, {
|
@@ -7716,7 +7722,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7716
7722
|
value: t.styleJson.inset,
|
7717
7723
|
onChange: t.setStyle
|
7718
7724
|
}, null, 8, ["value", "onChange"]),
|
7719
|
-
p(n(
|
7725
|
+
p(n(cn), { label: " " }, {
|
7720
7726
|
default: h(() => [
|
7721
7727
|
T("div", vp, [
|
7722
7728
|
T("div", {
|
@@ -7975,7 +7981,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7975
7981
|
collapsable: ""
|
7976
7982
|
}, {
|
7977
7983
|
default: h(() => [
|
7978
|
-
p(n(
|
7984
|
+
p(n(et), {
|
7979
7985
|
class: "v-style-widget__texting",
|
7980
7986
|
size: "small",
|
7981
7987
|
"label-width": "60px",
|
@@ -7994,7 +8000,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7994
8000
|
]),
|
7995
8001
|
_: 1
|
7996
8002
|
}),
|
7997
|
-
p(n(
|
8003
|
+
p(n(et), {
|
7998
8004
|
size: "small",
|
7999
8005
|
"label-width": "60px"
|
8000
8006
|
}, {
|
@@ -8080,7 +8086,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8080
8086
|
collapsable: ""
|
8081
8087
|
}, {
|
8082
8088
|
default: h(() => [
|
8083
|
-
p(n(
|
8089
|
+
p(n(et), {
|
8084
8090
|
"label-width": "60px",
|
8085
8091
|
size: "small"
|
8086
8092
|
}, {
|
@@ -8192,7 +8198,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8192
8198
|
collapsable: ""
|
8193
8199
|
}, {
|
8194
8200
|
default: h(() => [
|
8195
|
-
p(n(
|
8201
|
+
p(n(et), {
|
8196
8202
|
"label-width": "60px",
|
8197
8203
|
size: "small"
|
8198
8204
|
}, {
|
@@ -8310,7 +8316,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8310
8316
|
collapsable: ""
|
8311
8317
|
}, {
|
8312
8318
|
default: h(() => [
|
8313
|
-
p(n(
|
8319
|
+
p(n(et), {
|
8314
8320
|
"label-width": "60px",
|
8315
8321
|
size: "small"
|
8316
8322
|
}, {
|
@@ -8363,7 +8369,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8363
8369
|
const t = r, { selected: e } = St(), s = V(() => {
|
8364
8370
|
const c = e.value?.model || null;
|
8365
8371
|
return Te(c) ? null : c;
|
8366
|
-
}), o = V(() => s.value?.getPropValue("style") || {}), i = V(() => Cs(o.value)), a = V(() =>
|
8372
|
+
}), o = V(() => s.value?.getPropValue("style") || {}), i = V(() => Cs(o.value)), a = V(() => en(o.value)), l = (c, d) => {
|
8367
8373
|
const v = s.value?.getPropValue("style") || {};
|
8368
8374
|
d !== void 0 && d !== "" ? v[c] = d : delete v[c], s.value?.setProp("style", v);
|
8369
8375
|
};
|
@@ -8492,7 +8498,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8492
8498
|
onMouseover: (d) => i(c)
|
8493
8499
|
}, {
|
8494
8500
|
default: h(() => [
|
8495
|
-
|
8501
|
+
Q(ne(c.name), 1)
|
8496
8502
|
]),
|
8497
8503
|
_: 2
|
8498
8504
|
}, 1032, ["onClick", "onMouseover"]))), 256))
|
@@ -8600,7 +8606,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8600
8606
|
}, c = () => {
|
8601
8607
|
s.value = "//vtj.pro/help/index.html", l();
|
8602
8608
|
};
|
8603
|
-
|
8609
|
+
tn(() => {
|
8604
8610
|
i || (i = pl.service({ target: o.value?.$el }));
|
8605
8611
|
}), Ts(() => {
|
8606
8612
|
d(), i = null;
|
@@ -8662,7 +8668,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8662
8668
|
]),
|
8663
8669
|
m[1] || (m[1] = T("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1)),
|
8664
8670
|
T("div", Wp, [
|
8665
|
-
m[0] || (m[0] =
|
8671
|
+
m[0] || (m[0] = Q(" 版本: ")),
|
8666
8672
|
T("span", null, ne(n(Cn)), 1)
|
8667
8673
|
])
|
8668
8674
|
]),
|
@@ -8687,7 +8693,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8687
8693
|
onClick: d
|
8688
8694
|
}, {
|
8689
8695
|
default: h(() => m[2] || (m[2] = [
|
8690
|
-
|
8696
|
+
Q(" 退出登录 ")
|
8691
8697
|
])),
|
8692
8698
|
_: 1
|
8693
8699
|
})) : (u(), y(n(ve), {
|
@@ -8696,7 +8702,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8696
8702
|
onClick: t.toRemoteAuth
|
8697
8703
|
}, {
|
8698
8704
|
default: h(() => m[3] || (m[3] = [
|
8699
|
-
|
8705
|
+
Q(" 登录 ")
|
8700
8706
|
])),
|
8701
8707
|
_: 1
|
8702
8708
|
}, 8, ["onClick"]))
|
@@ -8708,7 +8714,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8708
8714
|
name: "ProjectConfigWidget",
|
8709
8715
|
__name: "index",
|
8710
8716
|
setup(r) {
|
8711
|
-
const { project: t } =
|
8717
|
+
const { project: t } = sn(), e = (s) => {
|
8712
8718
|
t.value?.setConfig(s);
|
8713
8719
|
};
|
8714
8720
|
return (s, o) => (u(), y(n(ce), {
|
@@ -8815,7 +8821,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8815
8821
|
size: "default"
|
8816
8822
|
}, {
|
8817
8823
|
default: h(() => b[1] || (b[1] = [
|
8818
|
-
|
8824
|
+
Q(" 清除 ")
|
8819
8825
|
])),
|
8820
8826
|
_: 1
|
8821
8827
|
})
|
@@ -8889,7 +8895,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8889
8895
|
size: "default"
|
8890
8896
|
}, {
|
8891
8897
|
default: h(() => g[1] || (g[1] = [
|
8892
|
-
|
8898
|
+
Q(" 清除 ")
|
8893
8899
|
])),
|
8894
8900
|
_: 1
|
8895
8901
|
})
|
@@ -8956,7 +8962,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8956
8962
|
size: "default"
|
8957
8963
|
}, {
|
8958
8964
|
default: h(() => g[1] || (g[1] = [
|
8959
|
-
|
8965
|
+
Q(" 清除 ")
|
8960
8966
|
])),
|
8961
8967
|
_: 1
|
8962
8968
|
})
|
@@ -8981,7 +8987,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8981
8987
|
name: "UniConfigWidget",
|
8982
8988
|
__name: "index",
|
8983
8989
|
setup(r) {
|
8984
|
-
const t = sc, { project: e } =
|
8990
|
+
const t = sc, { project: e } = sn(), s = (i) => (e.value?.uniConfig || {})[i], o = (i, a) => {
|
8985
8991
|
console.log("change", e.value, i, a), e.value?.setUniConfig(i, a);
|
8986
8992
|
};
|
8987
8993
|
return (i, a) => (u(), y(n(ce), {
|
@@ -8994,16 +9000,16 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8994
9000
|
"border-style": "dotted"
|
8995
9001
|
}, {
|
8996
9002
|
default: h(() => a[7] || (a[7] = [
|
8997
|
-
|
9003
|
+
Q(" 全局配置 ")
|
8998
9004
|
])),
|
8999
9005
|
_: 1
|
9000
9006
|
}),
|
9001
|
-
p(n(
|
9007
|
+
p(n(et), {
|
9002
9008
|
size: "small",
|
9003
9009
|
"label-position": "top"
|
9004
9010
|
}, {
|
9005
9011
|
default: h(() => [
|
9006
|
-
p(n(
|
9012
|
+
p(n(cn), {
|
9007
9013
|
label: "manifest.json",
|
9008
9014
|
onKeydown: a[1] || (a[1] = yt(lt(() => {
|
9009
9015
|
}, ["prevent"]), ["enter", "native"]))
|
@@ -9016,7 +9022,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9016
9022
|
]),
|
9017
9023
|
_: 1
|
9018
9024
|
}),
|
9019
|
-
p(n(
|
9025
|
+
p(n(cn), {
|
9020
9026
|
label: "pages.json",
|
9021
9027
|
onKeydown: a[3] || (a[3] = yt(lt(() => {
|
9022
9028
|
}, ["prevent"]), ["enter", "native"]))
|
@@ -9029,7 +9035,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9029
9035
|
]),
|
9030
9036
|
_: 1
|
9031
9037
|
}),
|
9032
|
-
p(n(
|
9038
|
+
p(n(cn), {
|
9033
9039
|
label: "CSS",
|
9034
9040
|
onKeydown: a[5] || (a[5] = yt(lt(() => {
|
9035
9041
|
}, ["prevent"]), ["enter", "native"]))
|
@@ -9050,16 +9056,16 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9050
9056
|
"border-style": "dotted"
|
9051
9057
|
}, {
|
9052
9058
|
default: h(() => a[8] || (a[8] = [
|
9053
|
-
|
9059
|
+
Q(" 应用生命周期 ")
|
9054
9060
|
])),
|
9055
9061
|
_: 1
|
9056
9062
|
}),
|
9057
|
-
p(n(
|
9063
|
+
p(n(et), {
|
9058
9064
|
size: "small",
|
9059
9065
|
"label-position": "top"
|
9060
9066
|
}, {
|
9061
9067
|
default: h(() => [
|
9062
|
-
(u(!0), R(q, null, se(n(t), (l) => (u(), y(n(
|
9068
|
+
(u(!0), R(q, null, se(n(t), (l) => (u(), y(n(cn), {
|
9063
9069
|
onKeydown: a[6] || (a[6] = yt(lt(() => {
|
9064
9070
|
}, ["prevent"]), ["enter", "native"])),
|
9065
9071
|
label: l,
|
@@ -9165,7 +9171,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9165
9171
|
size: "small",
|
9166
9172
|
modelValue: m.value,
|
9167
9173
|
"onUpdate:modelValue": O[0] || (O[0] = (B) => m.value = B),
|
9168
|
-
"prefix-icon": n(
|
9174
|
+
"prefix-icon": n(nn),
|
9169
9175
|
placeholder: "搜索模板",
|
9170
9176
|
clearable: ""
|
9171
9177
|
}, null, 8, ["modelValue", "prefix-icon"])
|
@@ -9212,7 +9218,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9212
9218
|
round: ""
|
9213
9219
|
}, {
|
9214
9220
|
default: h(() => O[2] || (O[2] = [
|
9215
|
-
|
9221
|
+
Q(" VIP ")
|
9216
9222
|
])),
|
9217
9223
|
_: 1
|
9218
9224
|
})) : I("", !0),
|
@@ -9242,7 +9248,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9242
9248
|
onClick: (z) => _(W)
|
9243
9249
|
}, {
|
9244
9250
|
default: h(() => O[3] || (O[3] = [
|
9245
|
-
|
9251
|
+
Q(" 使用 ")
|
9246
9252
|
])),
|
9247
9253
|
_: 2
|
9248
9254
|
}, 1032, ["icon", "onClick"])
|
@@ -9261,7 +9267,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9261
9267
|
}, 1032, ["name", "title"]))), 256))
|
9262
9268
|
]),
|
9263
9269
|
_: 1
|
9264
|
-
}, 8, ["model-value"])) : (u(), y(n(
|
9270
|
+
}, 8, ["model-value"])) : (u(), y(n(Re), {
|
9265
9271
|
key: 1,
|
9266
9272
|
description: "找不到符合条件的模板"
|
9267
9273
|
}))
|
@@ -9321,7 +9327,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9321
9327
|
onClick: o
|
9322
9328
|
}, {
|
9323
9329
|
default: h(() => c[0] || (c[0] = [
|
9324
|
-
|
9330
|
+
Q(" 开启新对话 ")
|
9325
9331
|
])),
|
9326
9332
|
_: 1
|
9327
9333
|
}, 8, ["icon"]),
|
@@ -9330,7 +9336,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9330
9336
|
"border-style": "dotted"
|
9331
9337
|
}, {
|
9332
9338
|
default: h(() => c[1] || (c[1] = [
|
9333
|
-
|
9339
|
+
Q(" 历史对话 ")
|
9334
9340
|
])),
|
9335
9341
|
_: 1
|
9336
9342
|
}),
|
@@ -9345,7 +9351,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9345
9351
|
onClick: (m) => i(d),
|
9346
9352
|
onAction: a
|
9347
9353
|
}, null, 8, ["index", "title", "model-value", "active", "onClick"]))), 256))
|
9348
|
-
])) : (u(), y(n(
|
9354
|
+
])) : (u(), y(n(Re), {
|
9349
9355
|
key: 1,
|
9350
9356
|
description: "暂无历史对话"
|
9351
9357
|
}))
|
@@ -9364,7 +9370,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9364
9370
|
},
|
9365
9371
|
emits: ["update:modelValue", "send"],
|
9366
9372
|
setup(r, { expose: t, emit: e }) {
|
9367
|
-
const s = r, o = e, i =
|
9373
|
+
const s = r, o = e, i = dn.get(_o, { type: "local" }) ?? !0, a = C(""), l = C(i), c = C(s.model || "");
|
9368
9374
|
Z(
|
9369
9375
|
() => s.models,
|
9370
9376
|
(m) => {
|
@@ -9380,7 +9386,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9380
9386
|
immediate: !0
|
9381
9387
|
}
|
9382
9388
|
), Z(l, (m) => {
|
9383
|
-
|
9389
|
+
dn.save(_o, m, { type: "local" }), wt.success({
|
9384
9390
|
message: m ? "您已开启自动应用到页面功能,当AI生成代码后将会自动更改当前低代码页面。" : "您已经关闭自动应用到页面功能,您可以通过手动的方式更改当前低代码页面"
|
9385
9391
|
});
|
9386
9392
|
});
|
@@ -9444,7 +9450,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9444
9450
|
size: "default"
|
9445
9451
|
}, {
|
9446
9452
|
default: h(() => g[3] || (g[3] = [
|
9447
|
-
|
9453
|
+
Q(" 发送 ")
|
9448
9454
|
])),
|
9449
9455
|
_: 1
|
9450
9456
|
}, 8, ["icon", "disabled", "loading"])
|
@@ -9479,8 +9485,8 @@ function bm() {
|
|
9479
9485
|
} : S instanceof Set && (S.add = S.clear = S.delete = function() {
|
9480
9486
|
throw new Error("set is read-only");
|
9481
9487
|
}), Object.freeze(S), Object.getOwnPropertyNames(S).forEach((M) => {
|
9482
|
-
const
|
9483
|
-
(le === "object" || le === "function") && !Object.isFrozen(
|
9488
|
+
const H = S[M], le = typeof H;
|
9489
|
+
(le === "object" || le === "function") && !Object.isFrozen(H) && r(H);
|
9484
9490
|
}), S;
|
9485
9491
|
}
|
9486
9492
|
class t {
|
@@ -9498,23 +9504,23 @@ function bm() {
|
|
9498
9504
|
return S.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
9499
9505
|
}
|
9500
9506
|
function s(S, ...M) {
|
9501
|
-
const
|
9507
|
+
const H = /* @__PURE__ */ Object.create(null);
|
9502
9508
|
for (const le in S)
|
9503
|
-
|
9509
|
+
H[le] = S[le];
|
9504
9510
|
return M.forEach(function(le) {
|
9505
|
-
for (const
|
9506
|
-
|
9511
|
+
for (const je in le)
|
9512
|
+
H[je] = le[je];
|
9507
9513
|
}), /** @type {T} */
|
9508
|
-
|
9514
|
+
H;
|
9509
9515
|
}
|
9510
9516
|
const o = "</span>", i = (S) => !!S.scope, a = (S, { prefix: M }) => {
|
9511
9517
|
if (S.startsWith("language:"))
|
9512
9518
|
return S.replace("language:", "language-");
|
9513
9519
|
if (S.includes(".")) {
|
9514
|
-
const
|
9520
|
+
const H = S.split(".");
|
9515
9521
|
return [
|
9516
|
-
`${M}${
|
9517
|
-
...
|
9522
|
+
`${M}${H.shift()}`,
|
9523
|
+
...H.map((le, je) => `${le}${"_".repeat(je + 1)}`)
|
9518
9524
|
].join(" ");
|
9519
9525
|
}
|
9520
9526
|
return `${M}${S}`;
|
@@ -9526,8 +9532,8 @@ function bm() {
|
|
9526
9532
|
* @param {Tree} parseTree - the parse tree (must support `walk` API)
|
9527
9533
|
* @param {{classPrefix: string}} options
|
9528
9534
|
*/
|
9529
|
-
constructor(M,
|
9530
|
-
this.buffer = "", this.classPrefix =
|
9535
|
+
constructor(M, H) {
|
9536
|
+
this.buffer = "", this.classPrefix = H.classPrefix, M.walk(this);
|
9531
9537
|
}
|
9532
9538
|
/**
|
9533
9539
|
* Adds texts to the output stream
|
@@ -9542,11 +9548,11 @@ function bm() {
|
|
9542
9548
|
* @param {Node} node */
|
9543
9549
|
openNode(M) {
|
9544
9550
|
if (!i(M)) return;
|
9545
|
-
const
|
9551
|
+
const H = a(
|
9546
9552
|
M.scope,
|
9547
9553
|
{ prefix: this.classPrefix }
|
9548
9554
|
);
|
9549
|
-
this.span(
|
9555
|
+
this.span(H);
|
9550
9556
|
}
|
9551
9557
|
/**
|
9552
9558
|
* Adds a node close to the output stream (if needed)
|
@@ -9590,8 +9596,8 @@ function bm() {
|
|
9590
9596
|
}
|
9591
9597
|
/** @param {string} scope */
|
9592
9598
|
openNode(M) {
|
9593
|
-
const
|
9594
|
-
this.add(
|
9599
|
+
const H = c({ scope: M });
|
9600
|
+
this.add(H), this.stack.push(H);
|
9595
9601
|
}
|
9596
9602
|
closeNode() {
|
9597
9603
|
if (this.stack.length > 1)
|
@@ -9614,15 +9620,15 @@ function bm() {
|
|
9614
9620
|
* @param {Renderer} builder
|
9615
9621
|
* @param {Node} node
|
9616
9622
|
*/
|
9617
|
-
static _walk(M,
|
9618
|
-
return typeof
|
9623
|
+
static _walk(M, H) {
|
9624
|
+
return typeof H == "string" ? M.addText(H) : H.children && (M.openNode(H), H.children.forEach((le) => this._walk(M, le)), M.closeNode(H)), M;
|
9619
9625
|
}
|
9620
9626
|
/**
|
9621
9627
|
* @param {Node} node
|
9622
9628
|
*/
|
9623
9629
|
static _collapse(M) {
|
9624
|
-
typeof M != "string" && M.children && (M.children.every((
|
9625
|
-
d._collapse(
|
9630
|
+
typeof M != "string" && M.children && (M.children.every((H) => typeof H == "string") ? M.children = [M.children.join("")] : M.children.forEach((H) => {
|
9631
|
+
d._collapse(H);
|
9626
9632
|
}));
|
9627
9633
|
}
|
9628
9634
|
}
|
@@ -9650,9 +9656,9 @@ function bm() {
|
|
9650
9656
|
* @param {Emitter & {root: DataNode}} emitter
|
9651
9657
|
* @param {string} name
|
9652
9658
|
*/
|
9653
|
-
__addSublanguage(M,
|
9659
|
+
__addSublanguage(M, H) {
|
9654
9660
|
const le = M.root;
|
9655
|
-
|
9661
|
+
H && (le.scope = `language:${H}`), this.add(le);
|
9656
9662
|
}
|
9657
9663
|
toHTML() {
|
9658
9664
|
return new l(this, this.options).value();
|
@@ -9674,7 +9680,7 @@ function bm() {
|
|
9674
9680
|
return x("(?:", S, ")?");
|
9675
9681
|
}
|
9676
9682
|
function x(...S) {
|
9677
|
-
return S.map((
|
9683
|
+
return S.map((H) => m(H)).join("");
|
9678
9684
|
}
|
9679
9685
|
function w(S) {
|
9680
9686
|
const M = S[S.length - 1];
|
@@ -9687,23 +9693,23 @@ function bm() {
|
|
9687
9693
|
return new RegExp(S.toString() + "|").exec("").length - 1;
|
9688
9694
|
}
|
9689
9695
|
function A(S, M) {
|
9690
|
-
const
|
9691
|
-
return
|
9696
|
+
const H = S && S.exec(M);
|
9697
|
+
return H && H.index === 0;
|
9692
9698
|
}
|
9693
9699
|
const E = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
9694
9700
|
function j(S, { joinWith: M }) {
|
9695
|
-
let
|
9701
|
+
let H = 0;
|
9696
9702
|
return S.map((le) => {
|
9697
|
-
|
9698
|
-
const
|
9699
|
-
let
|
9700
|
-
for (;
|
9701
|
-
const K = E.exec(
|
9703
|
+
H += 1;
|
9704
|
+
const je = H;
|
9705
|
+
let Oe = m(le), Y = "";
|
9706
|
+
for (; Oe.length > 0; ) {
|
9707
|
+
const K = E.exec(Oe);
|
9702
9708
|
if (!K) {
|
9703
|
-
Y +=
|
9709
|
+
Y += Oe;
|
9704
9710
|
break;
|
9705
9711
|
}
|
9706
|
-
Y +=
|
9712
|
+
Y += Oe.substring(0, K.index), Oe = Oe.substring(K.index + K[0].length), K[0][0] === "\\" && K[1] ? Y += "\\" + String(Number(K[1]) + je) : (Y += K[0], K[0] === "(" && H++);
|
9707
9713
|
}
|
9708
9714
|
return Y;
|
9709
9715
|
}).map((le) => `(${le})`).join(M);
|
@@ -9721,8 +9727,8 @@ function bm() {
|
|
9721
9727
|
end: /$/,
|
9722
9728
|
relevance: 0,
|
9723
9729
|
/** @type {ModeCallback} */
|
9724
|
-
"on:begin": (
|
9725
|
-
|
9730
|
+
"on:begin": (H, le) => {
|
9731
|
+
H.index !== 0 && le.ignoreMatch();
|
9726
9732
|
}
|
9727
9733
|
}, S);
|
9728
9734
|
}, te = {
|
@@ -9742,7 +9748,7 @@ function bm() {
|
|
9742
9748
|
contains: [te]
|
9743
9749
|
}, _e = {
|
9744
9750
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
9745
|
-
}, be = function(S, M,
|
9751
|
+
}, be = function(S, M, H = {}) {
|
9746
9752
|
const le = s(
|
9747
9753
|
{
|
9748
9754
|
scope: "comment",
|
@@ -9750,7 +9756,7 @@ function bm() {
|
|
9750
9756
|
end: M,
|
9751
9757
|
contains: []
|
9752
9758
|
},
|
9753
|
-
|
9759
|
+
H
|
9754
9760
|
);
|
9755
9761
|
le.contains.push({
|
9756
9762
|
scope: "doctag",
|
@@ -9761,7 +9767,7 @@ function bm() {
|
|
9761
9767
|
excludeBegin: !0,
|
9762
9768
|
relevance: 0
|
9763
9769
|
});
|
9764
|
-
const
|
9770
|
+
const je = k(
|
9765
9771
|
// list of common 1 and 2 letter words in English
|
9766
9772
|
"I",
|
9767
9773
|
"a",
|
@@ -9801,14 +9807,14 @@ function bm() {
|
|
9801
9807
|
/[ ]+/,
|
9802
9808
|
// necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
|
9803
9809
|
"(",
|
9804
|
-
|
9810
|
+
je,
|
9805
9811
|
/[.]?[:]?([.][ ]|[ ])/,
|
9806
9812
|
"){3}"
|
9807
9813
|
)
|
9808
9814
|
// look for 3 words in a row
|
9809
9815
|
}
|
9810
9816
|
), le;
|
9811
|
-
}, Ge = be("//", "$"), Fe = be("/\\*", "\\*/"), qe = be("#", "$"),
|
9817
|
+
}, Ge = be("//", "$"), Fe = be("/\\*", "\\*/"), qe = be("#", "$"), tt = {
|
9812
9818
|
scope: "number",
|
9813
9819
|
begin: W,
|
9814
9820
|
relevance: 0
|
@@ -9833,7 +9839,7 @@ function bm() {
|
|
9833
9839
|
contains: [te]
|
9834
9840
|
}
|
9835
9841
|
]
|
9836
|
-
},
|
9842
|
+
}, on = {
|
9837
9843
|
scope: "title",
|
9838
9844
|
begin: B,
|
9839
9845
|
relevance: 0
|
@@ -9862,12 +9868,12 @@ function bm() {
|
|
9862
9868
|
S,
|
9863
9869
|
{
|
9864
9870
|
/** @type {ModeCallback} */
|
9865
|
-
"on:begin": (M,
|
9866
|
-
|
9871
|
+
"on:begin": (M, H) => {
|
9872
|
+
H.data._beginMatch = M[1];
|
9867
9873
|
},
|
9868
9874
|
/** @type {ModeCallback} */
|
9869
|
-
"on:end": (M,
|
9870
|
-
|
9875
|
+
"on:end": (M, H) => {
|
9876
|
+
H.data._beginMatch !== M[1] && H.ignoreMatch();
|
9871
9877
|
}
|
9872
9878
|
}
|
9873
9879
|
);
|
@@ -9876,14 +9882,14 @@ function bm() {
|
|
9876
9882
|
IDENT_RE: B,
|
9877
9883
|
MATCH_NOTHING_RE: O,
|
9878
9884
|
METHOD_GUARD: qt,
|
9879
|
-
NUMBER_MODE:
|
9885
|
+
NUMBER_MODE: tt,
|
9880
9886
|
NUMBER_RE: W,
|
9881
9887
|
PHRASAL_WORDS_MODE: _e,
|
9882
9888
|
QUOTE_STRING_MODE: Ue,
|
9883
9889
|
REGEXP_MODE: ut,
|
9884
9890
|
RE_STARTERS_RE: L,
|
9885
9891
|
SHEBANG: P,
|
9886
|
-
TITLE_MODE:
|
9892
|
+
TITLE_MODE: on,
|
9887
9893
|
UNDERSCORE_IDENT_RE: N,
|
9888
9894
|
UNDERSCORE_TITLE_MODE: fn
|
9889
9895
|
});
|
@@ -9908,18 +9914,18 @@ function bm() {
|
|
9908
9914
|
function os(S, M) {
|
9909
9915
|
S.relevance === void 0 && (S.relevance = 1);
|
9910
9916
|
}
|
9911
|
-
const
|
9917
|
+
const J = (S, M) => {
|
9912
9918
|
if (!S.beforeMatch) return;
|
9913
9919
|
if (S.starts) throw new Error("beforeMatch cannot be used with starts");
|
9914
|
-
const
|
9920
|
+
const H = Object.assign({}, S);
|
9915
9921
|
Object.keys(S).forEach((le) => {
|
9916
9922
|
delete S[le];
|
9917
|
-
}), S.keywords =
|
9923
|
+
}), S.keywords = H.keywords, S.begin = x(H.beforeMatch, g(H.begin)), S.starts = {
|
9918
9924
|
relevance: 0,
|
9919
9925
|
contains: [
|
9920
|
-
Object.assign(
|
9926
|
+
Object.assign(H, { endsParent: !0 })
|
9921
9927
|
]
|
9922
|
-
}, S.relevance = 0, delete
|
9928
|
+
}, S.relevance = 0, delete H.beforeMatch;
|
9923
9929
|
}, fe = [
|
9924
9930
|
"of",
|
9925
9931
|
"and",
|
@@ -9935,19 +9941,19 @@ function bm() {
|
|
9935
9941
|
// common variable name
|
9936
9942
|
"value"
|
9937
9943
|
// common variable name
|
9938
|
-
],
|
9939
|
-
function
|
9944
|
+
], Ie = "keyword";
|
9945
|
+
function nt(S, M, H = Ie) {
|
9940
9946
|
const le = /* @__PURE__ */ Object.create(null);
|
9941
|
-
return typeof S == "string" ?
|
9947
|
+
return typeof S == "string" ? je(H, S.split(" ")) : Array.isArray(S) ? je(H, S) : Object.keys(S).forEach(function(Oe) {
|
9942
9948
|
Object.assign(
|
9943
9949
|
le,
|
9944
|
-
|
9950
|
+
nt(S[Oe], M, Oe)
|
9945
9951
|
);
|
9946
9952
|
}), le;
|
9947
|
-
function
|
9953
|
+
function je(Oe, Y) {
|
9948
9954
|
M && (Y = Y.map((K) => K.toLowerCase())), Y.forEach(function(K) {
|
9949
9955
|
const ae = K.split("|");
|
9950
|
-
le[ae[0]] = [
|
9956
|
+
le[ae[0]] = [Oe, Le(ae[0], ae[1])];
|
9951
9957
|
});
|
9952
9958
|
}
|
9953
9959
|
}
|
@@ -9961,15 +9967,15 @@ function bm() {
|
|
9961
9967
|
console.error(S);
|
9962
9968
|
}, $t = (S, ...M) => {
|
9963
9969
|
console.log(`WARN: ${S}`, ...M);
|
9964
|
-
},
|
9970
|
+
}, Ye = (S, M) => {
|
9965
9971
|
bn[`${S}/${M}`] || (console.log(`Deprecated as of ${S}. ${M}`), bn[`${S}/${M}`] = !0);
|
9966
9972
|
}, Xt = new Error();
|
9967
|
-
function qs(S, M, { key:
|
9973
|
+
function qs(S, M, { key: H }) {
|
9968
9974
|
let le = 0;
|
9969
|
-
const
|
9975
|
+
const je = S[H], Oe = {}, Y = {};
|
9970
9976
|
for (let K = 1; K <= M.length; K++)
|
9971
|
-
Y[K + le] =
|
9972
|
-
S[
|
9977
|
+
Y[K + le] = je[K], Oe[K + le] = !0, le += _(M[K - 1]);
|
9978
|
+
S[H] = Y, S[H]._emit = Oe, S[H]._multi = !0;
|
9973
9979
|
}
|
9974
9980
|
function Va(S) {
|
9975
9981
|
if (Array.isArray(S.begin)) {
|
@@ -10002,7 +10008,7 @@ function bm() {
|
|
10002
10008
|
"m" + (S.case_insensitive ? "i" : "") + (S.unicodeRegex ? "u" : "") + (K ? "g" : "")
|
10003
10009
|
);
|
10004
10010
|
}
|
10005
|
-
class
|
10011
|
+
class H {
|
10006
10012
|
constructor() {
|
10007
10013
|
this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
10008
10014
|
}
|
@@ -10032,7 +10038,7 @@ function bm() {
|
|
10032
10038
|
// @ts-ignore
|
10033
10039
|
getMatcher(K) {
|
10034
10040
|
if (this.multiRegexes[K]) return this.multiRegexes[K];
|
10035
|
-
const ae = new
|
10041
|
+
const ae = new H();
|
10036
10042
|
return this.rules.slice(K).forEach(([Je, $e]) => ae.addRule(Je, $e)), ae.compile(), this.multiRegexes[K] = ae, ae;
|
10037
10043
|
}
|
10038
10044
|
resumingScanAtSamePosition() {
|
@@ -10057,11 +10063,11 @@ function bm() {
|
|
10057
10063
|
return Je && (this.regexIndex += Je.position + 1, this.regexIndex === this.count && this.considerAll()), Je;
|
10058
10064
|
}
|
10059
10065
|
}
|
10060
|
-
function
|
10066
|
+
function je(Y) {
|
10061
10067
|
const K = new le();
|
10062
10068
|
return Y.contains.forEach((ae) => K.addRule(ae.begin, { rule: ae, type: "begin" })), Y.terminatorEnd && K.addRule(Y.terminatorEnd, { type: "end" }), Y.illegal && K.addRule(Y.illegal, { type: "illegal" }), K;
|
10063
10069
|
}
|
10064
|
-
function
|
10070
|
+
function Oe(Y, K) {
|
10065
10071
|
const ae = (
|
10066
10072
|
/** @type CompiledMode */
|
10067
10073
|
Y
|
@@ -10073,7 +10079,7 @@ function bm() {
|
|
10073
10079
|
// the distinction between match/begin
|
10074
10080
|
Vn,
|
10075
10081
|
Ia,
|
10076
|
-
|
10082
|
+
J
|
10077
10083
|
].forEach(($e) => $e(Y, K)), S.compilerExtensions.forEach(($e) => $e(Y, K)), Y.__beforeBegin = null, [
|
10078
10084
|
ns,
|
10079
10085
|
// do this later so compiler extensions that come earlier have access to the
|
@@ -10083,22 +10089,22 @@ function bm() {
|
|
10083
10089
|
os
|
10084
10090
|
].forEach(($e) => $e(Y, K)), Y.isCompiled = !0;
|
10085
10091
|
let Je = null;
|
10086
|
-
return typeof Y.keywords == "object" && Y.keywords.$pattern && (Y.keywords = Object.assign({}, Y.keywords), Je = Y.keywords.$pattern, delete Y.keywords.$pattern), Je = Je || /\w+/, Y.keywords && (Y.keywords =
|
10092
|
+
return typeof Y.keywords == "object" && Y.keywords.$pattern && (Y.keywords = Object.assign({}, Y.keywords), Je = Y.keywords.$pattern, delete Y.keywords.$pattern), Je = Je || /\w+/, Y.keywords && (Y.keywords = nt(Y.keywords, S.case_insensitive)), ae.keywordPatternRe = M(Je, !0), K && (Y.begin || (Y.begin = /\B|\b/), ae.beginRe = M(ae.begin), !Y.end && !Y.endsWithParent && (Y.end = /\B|\b/), Y.end && (ae.endRe = M(ae.end)), ae.terminatorEnd = m(ae.end) || "", Y.endsWithParent && K.terminatorEnd && (ae.terminatorEnd += (Y.end ? "|" : "") + K.terminatorEnd)), Y.illegal && (ae.illegalRe = M(
|
10087
10093
|
/** @type {RegExp | string} */
|
10088
10094
|
Y.illegal
|
10089
10095
|
)), Y.contains || (Y.contains = []), Y.contains = [].concat(...Y.contains.map(function($e) {
|
10090
10096
|
return Oa($e === "self" ? Y : $e);
|
10091
10097
|
})), Y.contains.forEach(function($e) {
|
10092
|
-
|
10098
|
+
Oe(
|
10093
10099
|
/** @type Mode */
|
10094
10100
|
$e,
|
10095
10101
|
ae
|
10096
10102
|
);
|
10097
|
-
}), Y.starts &&
|
10103
|
+
}), Y.starts && Oe(Y.starts, K), ae.matcher = je(ae), ae;
|
10098
10104
|
}
|
10099
10105
|
if (S.compilerExtensions || (S.compilerExtensions = []), S.contains && S.contains.includes("self"))
|
10100
10106
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
10101
|
-
return S.classNameAliases = s(S.classNameAliases || {}),
|
10107
|
+
return S.classNameAliases = s(S.classNameAliases || {}), Oe(
|
10102
10108
|
/** @type Mode */
|
10103
10109
|
S
|
10104
10110
|
);
|
@@ -10113,14 +10119,14 @@ function bm() {
|
|
10113
10119
|
}
|
10114
10120
|
var Da = "11.11.1";
|
10115
10121
|
class $a extends Error {
|
10116
|
-
constructor(M,
|
10117
|
-
super(M), this.name = "HTMLInjectionError", this.html =
|
10122
|
+
constructor(M, H) {
|
10123
|
+
super(M), this.name = "HTMLInjectionError", this.html = H;
|
10118
10124
|
}
|
10119
10125
|
}
|
10120
10126
|
const as = e, Xs = s, Qs = Symbol("nomatch"), Na = 7, Ys = function(S) {
|
10121
|
-
const M = /* @__PURE__ */ Object.create(null),
|
10122
|
-
let
|
10123
|
-
const
|
10127
|
+
const M = /* @__PURE__ */ Object.create(null), H = /* @__PURE__ */ Object.create(null), le = [];
|
10128
|
+
let je = !0;
|
10129
|
+
const Oe = "Could not find the language '{}', did you forget to load/include a language module?", Y = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
10124
10130
|
let K = {
|
10125
10131
|
ignoreUnescapedHTML: !1,
|
10126
10132
|
throwUnescapedHTML: !1,
|
@@ -10142,13 +10148,13 @@ function bm() {
|
|
10142
10148
|
const ge = K.languageDetectRe.exec(oe);
|
10143
10149
|
if (ge) {
|
10144
10150
|
const we = Nt(ge[1]);
|
10145
|
-
return we || ($t(
|
10151
|
+
return we || ($t(Oe.replace("{}", ge[1])), $t("Falling back to no-highlight mode for this block.", U)), we ? ge[1] : "no-highlight";
|
10146
10152
|
}
|
10147
10153
|
return oe.split(/\s+/).find((we) => ae(we) || Nt(we));
|
10148
10154
|
}
|
10149
10155
|
function $e(U, oe, ge) {
|
10150
10156
|
let we = "", ze = "";
|
10151
|
-
typeof oe == "object" ? (we = U, ge = oe.ignoreIllegals, ze = oe.language) : (
|
10157
|
+
typeof oe == "object" ? (we = U, ge = oe.ignoreIllegals, ze = oe.language) : (Ye("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ye("10.7.0", `Please use highlight(code, options) instead.
|
10152
10158
|
https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge === void 0 && (ge = !0);
|
10153
10159
|
const ht = {
|
10154
10160
|
code: we,
|
@@ -10173,9 +10179,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10173
10179
|
let ee = ie.keywordPatternRe.exec(ke), me = "";
|
10174
10180
|
for (; ee; ) {
|
10175
10181
|
me += ke.substring(G, ee.index);
|
10176
|
-
const ye = Et.case_insensitive ? ee[0].toLowerCase() : ee[0],
|
10177
|
-
if (
|
10178
|
-
const [jt, Za] =
|
10182
|
+
const ye = Et.case_insensitive ? ee[0].toLowerCase() : ee[0], Ze = ht(ie, ye);
|
10183
|
+
if (Ze) {
|
10184
|
+
const [jt, Za] = Ze;
|
10179
10185
|
if (Ke.addText(me), me = "", ze[ye] = (ze[ye] || 0) + 1, ze[ye] <= Na && (On += Za), jt.startsWith("_"))
|
10180
10186
|
me += ee[0];
|
10181
10187
|
else {
|
@@ -10216,8 +10222,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10216
10222
|
me++;
|
10217
10223
|
continue;
|
10218
10224
|
}
|
10219
|
-
const
|
10220
|
-
|
10225
|
+
const Ze = Et.classNameAliases[G[me]] || G[me], jt = ee[me];
|
10226
|
+
Ze ? Ct(jt, Ze) : (ke = jt, Pt(), ke = ""), me++;
|
10221
10227
|
}
|
10222
10228
|
}
|
10223
10229
|
function so(G, ee) {
|
@@ -10227,8 +10233,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10227
10233
|
let ye = A(G.endRe, me);
|
10228
10234
|
if (ye) {
|
10229
10235
|
if (G["on:end"]) {
|
10230
|
-
const
|
10231
|
-
G["on:end"](ee,
|
10236
|
+
const Ze = new t(G);
|
10237
|
+
G["on:end"](ee, Ze), Ze.isMatchIgnored && (ye = !1);
|
10232
10238
|
}
|
10233
10239
|
if (ye) {
|
10234
10240
|
for (; G.endsParent && G.parent; )
|
@@ -10243,8 +10249,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10243
10249
|
return ie.matcher.regexIndex === 0 ? (ke += G[0], 1) : (ds = !0, 0);
|
10244
10250
|
}
|
10245
10251
|
function Ka(G) {
|
10246
|
-
const ee = G[0], me = G.rule, ye = new t(me),
|
10247
|
-
for (const jt of
|
10252
|
+
const ee = G[0], me = G.rule, ye = new t(me), Ze = [me.__beforeBegin, me["on:begin"]];
|
10253
|
+
for (const jt of Ze)
|
10248
10254
|
if (jt && (jt(G, ye), ye.isMatchIgnored))
|
10249
10255
|
return qa(ee);
|
10250
10256
|
return me.skip ? ke += ee : (me.excludeBegin && (ke += ee), ot(), !me.returnBegin && !me.excludeBegin && (ke = ee)), so(me, G), me.returnBegin ? 0 : ee.length;
|
@@ -10253,12 +10259,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10253
10259
|
const ee = G[0], me = oe.substring(G.index), ye = oo(ie, G, me);
|
10254
10260
|
if (!ye)
|
10255
10261
|
return Qs;
|
10256
|
-
const
|
10257
|
-
ie.endScope && ie.endScope._wrap ? (ot(), Ct(ee, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (ot(), no(ie.endScope, G)) :
|
10262
|
+
const Ze = ie;
|
10263
|
+
ie.endScope && ie.endScope._wrap ? (ot(), Ct(ee, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (ot(), no(ie.endScope, G)) : Ze.skip ? ke += ee : (Ze.returnEnd || Ze.excludeEnd || (ke += ee), ot(), Ze.excludeEnd && (ke = ee));
|
10258
10264
|
do
|
10259
10265
|
ie.scope && Ke.closeNode(), !ie.skip && !ie.subLanguage && (On += ie.relevance), ie = ie.parent;
|
10260
10266
|
while (ie !== ye.parent);
|
10261
|
-
return ye.starts && so(ye.starts, G),
|
10267
|
+
return ye.starts && so(ye.starts, G), Ze.returnEnd ? 0 : ee.length;
|
10262
10268
|
}
|
10263
10269
|
function Qa() {
|
10264
10270
|
const G = [];
|
@@ -10272,7 +10278,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10272
10278
|
if (ke += G, me == null)
|
10273
10279
|
return ot(), 0;
|
10274
10280
|
if (jn.type === "begin" && ee.type === "end" && jn.index === ee.index && me === "") {
|
10275
|
-
if (ke += oe.slice(ee.index, ee.index + 1), !
|
10281
|
+
if (ke += oe.slice(ee.index, ee.index + 1), !je) {
|
10276
10282
|
const ye = new Error(`0 width match regex (${U})`);
|
10277
10283
|
throw ye.languageName = U, ye.badRule = jn.rule, ye;
|
10278
10284
|
}
|
@@ -10297,7 +10303,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10297
10303
|
}
|
10298
10304
|
const Et = Nt(U);
|
10299
10305
|
if (!Et)
|
10300
|
-
throw ft(
|
10306
|
+
throw ft(Oe.replace("{}", U)), new Error('Unknown language: "' + U + '"');
|
10301
10307
|
const Ya = ja(Et);
|
10302
10308
|
let cs = "", ie = we || Ya;
|
10303
10309
|
const lo = {}, Ke = new K.__emitter(K);
|
@@ -10340,7 +10346,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10340
10346
|
},
|
10341
10347
|
_emitter: Ke
|
10342
10348
|
};
|
10343
|
-
if (
|
10349
|
+
if (je)
|
10344
10350
|
return {
|
10345
10351
|
language: U,
|
10346
10352
|
value: as(oe),
|
@@ -10382,7 +10388,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10382
10388
|
return In.secondBest = Pt, In;
|
10383
10389
|
}
|
10384
10390
|
function Pa(U, oe, ge) {
|
10385
|
-
const we = oe &&
|
10391
|
+
const we = oe && H[oe] || ge;
|
10386
10392
|
U.classList.add("hljs"), U.classList.add(`language-${we}`);
|
10387
10393
|
}
|
10388
10394
|
function rs(U) {
|
@@ -10417,10 +10423,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10417
10423
|
K = Xs(K, U);
|
10418
10424
|
}
|
10419
10425
|
const Ba = () => {
|
10420
|
-
Tn(),
|
10426
|
+
Tn(), Ye("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
10421
10427
|
};
|
10422
10428
|
function La() {
|
10423
|
-
Tn(),
|
10429
|
+
Tn(), Ye("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
10424
10430
|
}
|
10425
10431
|
let Zs = !1;
|
10426
10432
|
function Tn() {
|
@@ -10438,7 +10444,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10438
10444
|
try {
|
10439
10445
|
ge = oe(S);
|
10440
10446
|
} catch (we) {
|
10441
|
-
if (ft("Language definition for '{}' could not be registered.".replace("{}", U)),
|
10447
|
+
if (ft("Language definition for '{}' could not be registered.".replace("{}", U)), je)
|
10442
10448
|
ft(we);
|
10443
10449
|
else
|
10444
10450
|
throw we;
|
@@ -10448,18 +10454,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10448
10454
|
}
|
10449
10455
|
function Ua(U) {
|
10450
10456
|
delete M[U];
|
10451
|
-
for (const oe of Object.keys(
|
10452
|
-
|
10457
|
+
for (const oe of Object.keys(H))
|
10458
|
+
H[oe] === U && delete H[oe];
|
10453
10459
|
}
|
10454
10460
|
function Fa() {
|
10455
10461
|
return Object.keys(M);
|
10456
10462
|
}
|
10457
10463
|
function Nt(U) {
|
10458
|
-
return U = (U || "").toLowerCase(), M[U] || M[
|
10464
|
+
return U = (U || "").toLowerCase(), M[U] || M[H[U]];
|
10459
10465
|
}
|
10460
10466
|
function eo(U, { languageName: oe }) {
|
10461
10467
|
typeof U == "string" && (U = [U]), U.forEach((ge) => {
|
10462
|
-
|
10468
|
+
H[ge.toLowerCase()] = oe;
|
10463
10469
|
});
|
10464
10470
|
}
|
10465
10471
|
function to(U) {
|
@@ -10491,7 +10497,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10491
10497
|
});
|
10492
10498
|
}
|
10493
10499
|
function Ga(U) {
|
10494
|
-
return
|
10500
|
+
return Ye("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ye("10.7.0", "Please use highlightElement now."), rs(U);
|
10495
10501
|
}
|
10496
10502
|
Object.assign(S, {
|
10497
10503
|
highlight: $e,
|
@@ -10513,9 +10519,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10513
10519
|
addPlugin: Ja,
|
10514
10520
|
removePlugin: Ha
|
10515
10521
|
}), S.debugMode = function() {
|
10516
|
-
|
10522
|
+
je = !1;
|
10517
10523
|
}, S.safeMode = function() {
|
10518
|
-
|
10524
|
+
je = !0;
|
10519
10525
|
}, S.versionString = Da, S.regex = {
|
10520
10526
|
concat: x,
|
10521
10527
|
lookahead: g,
|
@@ -10526,8 +10532,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10526
10532
|
for (const U in We)
|
10527
10533
|
typeof We[U] == "object" && r(We[U]);
|
10528
10534
|
return Object.assign(S, We), S;
|
10529
|
-
},
|
10530
|
-
return
|
10535
|
+
}, an = Ys({});
|
10536
|
+
return an.newInstance = () => Ys({}), ys = an, an.HighlightJS = an, an.default = an, ys;
|
10531
10537
|
}
|
10532
10538
|
var ym = /* @__PURE__ */ bm();
|
10533
10539
|
const $n = /* @__PURE__ */ hm(ym);
|
@@ -10921,13 +10927,13 @@ function Cm(r) {
|
|
10921
10927
|
return;
|
10922
10928
|
}
|
10923
10929
|
qe === ">" && (e(be, { after: Fe }) || Ge.ignoreMatch());
|
10924
|
-
let
|
10930
|
+
let tt;
|
10925
10931
|
const st = be.input.substring(Fe);
|
10926
|
-
if (
|
10932
|
+
if (tt = st.match(/^\s*=/)) {
|
10927
10933
|
Ge.ignoreMatch();
|
10928
10934
|
return;
|
10929
10935
|
}
|
10930
|
-
if ((
|
10936
|
+
if ((tt = st.match(/^\s+extends\s+/)) && tt.index === 0) {
|
10931
10937
|
Ge.ignoreMatch();
|
10932
10938
|
return;
|
10933
10939
|
}
|
@@ -12441,7 +12447,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12441
12447
|
onClick: f
|
12442
12448
|
}, {
|
12443
12449
|
default: h(() => [
|
12444
|
-
|
12450
|
+
Q(ne(g.value) + " ", 1),
|
12445
12451
|
p(n(Tt), { icon: c.value }, null, 8, ["icon"])
|
12446
12452
|
]),
|
12447
12453
|
_: 1
|
@@ -12469,7 +12475,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12469
12475
|
onClick: x
|
12470
12476
|
}, {
|
12471
12477
|
default: h(() => _[0] || (_[0] = [
|
12472
|
-
|
12478
|
+
Q("纠正错误")
|
12473
12479
|
])),
|
12474
12480
|
_: 1
|
12475
12481
|
})
|
@@ -12514,7 +12520,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12514
12520
|
default: h(() => [
|
12515
12521
|
T("div", Wm, [
|
12516
12522
|
T("div", null, [
|
12517
|
-
s[1] || (s[1] =
|
12523
|
+
s[1] || (s[1] = Q(" 使用AI助手需登录 VTJ.PRO 客户端,您还没登录或登录已失效,请重新登录! ")),
|
12518
12524
|
p(n(ve), {
|
12519
12525
|
size: "small",
|
12520
12526
|
type: "primary",
|
@@ -12523,7 +12529,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12523
12529
|
onClick: n(t)
|
12524
12530
|
}, {
|
12525
12531
|
default: h(() => s[0] || (s[0] = [
|
12526
|
-
|
12532
|
+
Q(" 立即登录 ")
|
12527
12533
|
])),
|
12528
12534
|
_: 1
|
12529
12535
|
}, 8, ["onClick"])
|
@@ -12551,7 +12557,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12551
12557
|
}, c = (d) => {
|
12552
12558
|
s("send", { type: a.value, ...d });
|
12553
12559
|
};
|
12554
|
-
return
|
12560
|
+
return tn(async () => {
|
12555
12561
|
const d = await o();
|
12556
12562
|
d?.success && (i.value = d.data);
|
12557
12563
|
}), (d, v) => (u(), R("div", Gm, [
|
@@ -12570,7 +12576,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12570
12576
|
i.value.length ? (u(), R(q, { key: 0 }, [
|
12571
12577
|
p(n(rt), { "content-position": "left" }, {
|
12572
12578
|
default: h(() => v[0] || (v[0] = [
|
12573
|
-
|
12579
|
+
Q("热门需求")
|
12574
12580
|
])),
|
12575
12581
|
_: 1
|
12576
12582
|
}),
|
@@ -12645,7 +12651,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12645
12651
|
o("change", a?.getValue(), m);
|
12646
12652
|
}), a.onDidBlurEditorText(c);
|
12647
12653
|
};
|
12648
|
-
return
|
12654
|
+
return tn(() => {
|
12649
12655
|
at(d);
|
12650
12656
|
}), Ts(() => {
|
12651
12657
|
a && a.dispose();
|
@@ -12660,7 +12666,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12660
12666
|
ref: i,
|
12661
12667
|
onKeyup: g[0] || (g[0] = yt(lt(() => {
|
12662
12668
|
}, ["stop"]), ["enter"])),
|
12663
|
-
style:
|
12669
|
+
style: rn({ height: s.height })
|
12664
12670
|
}, null, 38));
|
12665
12671
|
}
|
12666
12672
|
}), Ym = /* @__PURE__ */ $({
|
@@ -12689,7 +12695,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12689
12695
|
handle: h(() => [
|
12690
12696
|
p(n(ve), { onClick: c }, {
|
12691
12697
|
default: h(() => v[1] || (v[1] = [
|
12692
|
-
|
12698
|
+
Q("重新生成DSL")
|
12693
12699
|
])),
|
12694
12700
|
_: 1
|
12695
12701
|
})
|
@@ -12794,7 +12800,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12794
12800
|
const b = await t.createOrder();
|
12795
12801
|
b?.success && (s.value = !0, o.value = b.data);
|
12796
12802
|
}, m = async () => {
|
12797
|
-
((await t.getOrder(o.value?.id))?.data).status === "Completed" ? (await
|
12803
|
+
((await t.getOrder(o.value?.id))?.data).status === "Completed" ? (await un("订单已经支付成功,你权限已经开通!").catch(() => null), location.reload()) : await un("您的订单状态还没更新,支付后请与客服联系!", {
|
12798
12804
|
type: "success",
|
12799
12805
|
confirmButtonText: "再等等"
|
12800
12806
|
}).catch(() => null);
|
@@ -12825,7 +12831,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12825
12831
|
onClick: v
|
12826
12832
|
}, {
|
12827
12833
|
default: h(() => f[2] || (f[2] = [
|
12828
|
-
|
12834
|
+
Q(" 立即开通 "),
|
12829
12835
|
T("span", { class: "price" }, "99元/月", -1)
|
12830
12836
|
])),
|
12831
12837
|
_: 1
|
@@ -12839,7 +12845,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12839
12845
|
onClick: d
|
12840
12846
|
}, {
|
12841
12847
|
default: h(() => f[3] || (f[3] = [
|
12842
|
-
|
12848
|
+
Q(" 取消 ")
|
12843
12849
|
])),
|
12844
12850
|
_: 1
|
12845
12851
|
})
|
@@ -12863,7 +12869,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12863
12869
|
onClick: m
|
12864
12870
|
}, {
|
12865
12871
|
default: h(() => f[9] || (f[9] = [
|
12866
|
-
|
12872
|
+
Q(" 已完成 ")
|
12867
12873
|
])),
|
12868
12874
|
_: 1
|
12869
12875
|
}, 8, ["icon"]),
|
@@ -12873,7 +12879,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12873
12879
|
onClick: g
|
12874
12880
|
}, {
|
12875
12881
|
default: h(() => f[10] || (f[10] = [
|
12876
|
-
|
12882
|
+
Q("取消")
|
12877
12883
|
])),
|
12878
12884
|
_: 1
|
12879
12885
|
})
|
@@ -12884,7 +12890,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12884
12890
|
closable: !1
|
12885
12891
|
}, {
|
12886
12892
|
default: h(() => f[4] || (f[4] = [
|
12887
|
-
|
12893
|
+
Q(" 您的订单已经成功创建,请按以下步骤完成开通订阅。 ")
|
12888
12894
|
])),
|
12889
12895
|
_: 1
|
12890
12896
|
}),
|
@@ -12940,7 +12946,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12940
12946
|
onClick: c
|
12941
12947
|
}, {
|
12942
12948
|
default: h(() => f[7] || (f[7] = [
|
12943
|
-
|
12949
|
+
Q("复制")
|
12944
12950
|
])),
|
12945
12951
|
_: 1
|
12946
12952
|
}, 8, ["icon"])
|
@@ -12953,7 +12959,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
12953
12959
|
}),
|
12954
12960
|
f[11] || (f[11] = T("div", { class: "pay-tip" }, [
|
12955
12961
|
T("strong", null, "提示:"),
|
12956
|
-
|
12962
|
+
Q(" 订阅成功后您将拥有VTJ.PRO全功能权限,并赠送DeepSeek官方5百万tokens使用量。 ")
|
12957
12963
|
], -1))
|
12958
12964
|
]),
|
12959
12965
|
_: 1
|
@@ -13000,7 +13006,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13000
13006
|
cancelOrder: _e,
|
13001
13007
|
getOrder: be,
|
13002
13008
|
updateChatDsl: Ge
|
13003
|
-
} = nu(), Fe = C(!0), qe = C(!1),
|
13009
|
+
} = nu(), Fe = C(!0), qe = C(!1), tt = V(() => !t.current.value), st = V(() => z.value ? {
|
13004
13010
|
icon: Pr,
|
13005
13011
|
title: "显示代码块",
|
13006
13012
|
type: "warning"
|
@@ -13008,8 +13014,8 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13008
13014
|
icon: ua,
|
13009
13015
|
title: "隐藏代码块",
|
13010
13016
|
type: "default"
|
13011
|
-
}), vt = V(() => !Fe.value ||
|
13012
|
-
|
13017
|
+
}), vt = V(() => !Fe.value || tt.value ? "hidden" : "auto");
|
13018
|
+
tn(async () => {
|
13013
13019
|
Fe.value = await e();
|
13014
13020
|
});
|
13015
13021
|
const ut = () => {
|
@@ -13020,7 +13026,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13020
13026
|
);
|
13021
13027
|
return;
|
13022
13028
|
}
|
13023
|
-
if (
|
13029
|
+
if (tt.value) {
|
13024
13030
|
Ne(
|
13025
13031
|
"当前设计视图无任何文件,请新建或打开文件后再使用AI助",
|
13026
13032
|
"warning"
|
@@ -13028,7 +13034,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13028
13034
|
return;
|
13029
13035
|
}
|
13030
13036
|
qe.value = !qe.value;
|
13031
|
-
},
|
13037
|
+
}, on = () => {
|
13032
13038
|
N.value || (s.value = !0, qe.value = !1);
|
13033
13039
|
}, fn = (qt) => {
|
13034
13040
|
qe.value = !1, s.value = !1, c.value = qt, m(qt.id);
|
@@ -13106,8 +13112,8 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13106
13112
|
]),
|
13107
13113
|
default: h(() => [
|
13108
13114
|
Fe.value ? I("", !0) : (u(), y(Hm, { key: 0 })),
|
13109
|
-
Fe.value &&
|
13110
|
-
|
13115
|
+
Fe.value && tt.value ? (u(), y(Qm, { key: 1 })) : I("", !0),
|
13116
|
+
tt.value || n(s) ? (u(), y(qm, {
|
13111
13117
|
key: 2,
|
13112
13118
|
models: n(i),
|
13113
13119
|
loading: n(o),
|
@@ -13138,7 +13144,8 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13138
13144
|
onApply: (Kt) => n(x)(We),
|
13139
13145
|
onFix: (Kt) => n(D)(We)
|
13140
13146
|
}, null, 8, ["data", "code", "onView", "onRefresh", "onApply", "onFix"])
|
13141
|
-
], 64))), 128))
|
13147
|
+
], 64))), 128)),
|
13148
|
+
n(l).length ? I("", !0) : (u(), y(n(Re), { key: 0 }))
|
13142
13149
|
], 512)),
|
13143
13150
|
n(_) ? (u(), y(Zm, {
|
13144
13151
|
key: 4,
|
@@ -13162,10 +13169,10 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13162
13169
|
type: "primary",
|
13163
13170
|
size: "small",
|
13164
13171
|
icon: n(ca),
|
13165
|
-
onClick:
|
13172
|
+
onClick: on
|
13166
13173
|
}, {
|
13167
13174
|
default: h(() => gt[2] || (gt[2] = [
|
13168
|
-
|
13175
|
+
Q(" 开启新对话 ")
|
13169
13176
|
])),
|
13170
13177
|
_: 1
|
13171
13178
|
}, 8, ["icon"]),
|
@@ -13216,7 +13223,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13216
13223
|
p(pm, {
|
13217
13224
|
current: n(c),
|
13218
13225
|
topics: n(v),
|
13219
|
-
onNew:
|
13226
|
+
onNew: on,
|
13220
13227
|
onLoad: fn,
|
13221
13228
|
onRemove: n(g)
|
13222
13229
|
}, null, 8, ["current", "topics", "onRemove"])
|
@@ -14272,7 +14279,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
14272
14279
|
setup(r, { emit: t }) {
|
14273
14280
|
const e = (c = "") => ({
|
14274
14281
|
type: "JSExpression",
|
14275
|
-
value:
|
14282
|
+
value: en(c) ? c.value : c
|
14276
14283
|
}), s = r, o = t, i = (c) => Xe(c, s.context, !0), a = C(e(s.modelValue).value);
|
14277
14284
|
Z(
|
14278
14285
|
() => s.modelValue,
|
@@ -14297,10 +14304,10 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
14297
14304
|
onChange: l
|
14298
14305
|
}, {
|
14299
14306
|
prefix: h(() => [
|
14300
|
-
|
14307
|
+
Q(ne(Av))
|
14301
14308
|
]),
|
14302
14309
|
suffix: h(() => [
|
14303
|
-
|
14310
|
+
Q(ne(Vv))
|
14304
14311
|
]),
|
14305
14312
|
_: 1
|
14306
14313
|
}, 8, ["modelValue"]));
|
@@ -14331,7 +14338,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
14331
14338
|
},
|
14332
14339
|
emits: ["change"],
|
14333
14340
|
setup(r, { emit: t }) {
|
14334
|
-
const e = r, s = t, o = V(() =>
|
14341
|
+
const e = r, s = t, o = V(() => en(e.modelValue) ? void 0 : Number(e.modelValue || 0)), i = (a) => {
|
14335
14342
|
s("change", a);
|
14336
14343
|
};
|
14337
14344
|
return (a, l) => (u(), y(n(bl), Pe({
|
@@ -14369,7 +14376,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
14369
14376
|
key: 0,
|
14370
14377
|
src: o.svg
|
14371
14378
|
}, null, 8, ["src"])) : (u(), R(q, { key: 1 }, [
|
14372
|
-
|
14379
|
+
Q(ne(o.label), 1)
|
14373
14380
|
], 64))
|
14374
14381
|
]),
|
14375
14382
|
_: 2
|
@@ -14407,7 +14414,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
14407
14414
|
src: l.svg,
|
14408
14415
|
size: 16
|
14409
14416
|
}, null, 8, ["src"])) : (u(), R(q, { key: 1 }, [
|
14410
|
-
|
14417
|
+
Q(ne(l.label), 1)
|
14411
14418
|
], 64))
|
14412
14419
|
], 10, Dv))), 256))
|
14413
14420
|
], 16));
|
@@ -14866,7 +14873,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
14866
14873
|
onClick: m
|
14867
14874
|
}, {
|
14868
14875
|
default: h(() => f[2] || (f[2] = [
|
14869
|
-
|
14876
|
+
Q(" 清除绑定 ")
|
14870
14877
|
])),
|
14871
14878
|
_: 1
|
14872
14879
|
})
|
@@ -14875,7 +14882,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
14875
14882
|
T("div", Fv, [
|
14876
14883
|
p(n(Me), {
|
14877
14884
|
size: s.size,
|
14878
|
-
"prefix-icon": n(
|
14885
|
+
"prefix-icon": n(nn),
|
14879
14886
|
clearable: "",
|
14880
14887
|
modelValue: a.value,
|
14881
14888
|
"onUpdate:modelValue": f[0] || (f[0] = (x) => a.value = x),
|
@@ -14893,7 +14900,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
14893
14900
|
"van-icon-setter__item"
|
14894
14901
|
])
|
14895
14902
|
}, null, 10, Hv))), 256)),
|
14896
|
-
c.value.length === 0 ? (u(), y(n(
|
14903
|
+
c.value.length === 0 ? (u(), y(n(Re), {
|
14897
14904
|
key: 0,
|
14898
14905
|
class: "empty-wrapper"
|
14899
14906
|
})) : I("", !0)
|
@@ -15073,7 +15080,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
15073
15080
|
];
|
15074
15081
|
class Qv {
|
15075
15082
|
constructor() {
|
15076
|
-
|
15083
|
+
X(this, "widgets", {});
|
15077
15084
|
this.widgets = this.createWidgets();
|
15078
15085
|
}
|
15079
15086
|
createWidgets() {
|
@@ -15213,8 +15220,8 @@ class Yv {
|
|
15213
15220
|
const Zv = new Yv();
|
15214
15221
|
class eg {
|
15215
15222
|
constructor() {
|
15216
|
-
|
15217
|
-
|
15223
|
+
X(this, "setters", {});
|
15224
|
+
X(this, "defaultSetter", Kv);
|
15218
15225
|
this.setters = this.createSetters();
|
15219
15226
|
}
|
15220
15227
|
createSetters() {
|
@@ -15259,14 +15266,14 @@ class eg {
|
|
15259
15266
|
const wn = new eg();
|
15260
15267
|
class tg {
|
15261
15268
|
constructor() {
|
15262
|
-
|
15263
|
-
|
15264
|
-
|
15265
|
-
|
15266
|
-
|
15267
|
-
|
15268
|
-
|
15269
|
-
|
15269
|
+
X(this, "window");
|
15270
|
+
X(this, "engine");
|
15271
|
+
X(this, "app");
|
15272
|
+
X(this, "isOpen", C(!1));
|
15273
|
+
X(this, "enabled");
|
15274
|
+
X(this, "proxyUpdateState");
|
15275
|
+
X(this, "isInited", !1);
|
15276
|
+
X(this, "proxyLoad");
|
15270
15277
|
this.proxyUpdateState = this.updateState.bind(this), this.proxyLoad = Jo(this.load, 500);
|
15271
15278
|
}
|
15272
15279
|
createScript(t, e, s) {
|
@@ -15281,7 +15288,7 @@ class tg {
|
|
15281
15288
|
});
|
15282
15289
|
}
|
15283
15290
|
async load(t) {
|
15284
|
-
this.enabled && (await
|
15291
|
+
this.enabled && (await pn(200), this.window && this.appUnmount(this.window), t && this.appInit(t), this.isInited = !0);
|
15285
15292
|
}
|
15286
15293
|
updateState(t) {
|
15287
15294
|
t.key === go && (this.isOpen.value = !!this.getState().open);
|
@@ -15346,15 +15353,15 @@ function ng(r, t) {
|
|
15346
15353
|
}
|
15347
15354
|
class sg {
|
15348
15355
|
constructor(t, e, s, o) {
|
15349
|
-
|
15350
|
-
|
15351
|
-
|
15352
|
-
|
15353
|
-
|
15354
|
-
|
15355
|
-
|
15356
|
-
|
15357
|
-
|
15356
|
+
X(this, "proxied", {});
|
15357
|
+
X(this, "document", null);
|
15358
|
+
X(this, "hover", mt(null));
|
15359
|
+
X(this, "dropping", mt(null));
|
15360
|
+
X(this, "selected", C(null));
|
15361
|
+
X(this, "dragging", null);
|
15362
|
+
X(this, "draggingNode", null);
|
15363
|
+
X(this, "lines", mt([]));
|
15364
|
+
X(this, "outlineEnabled", C(!0));
|
15358
15365
|
this.engine = t, this.contentWindow = e, this.dependencies = s, this.devtools = o, this.document = this.contentWindow.document, this.bindEvents(e, this.document);
|
15359
15366
|
}
|
15360
15367
|
bind(t, e) {
|
@@ -15375,10 +15382,10 @@ class sg {
|
|
15375
15382
|
"click",
|
15376
15383
|
this.bind(this.onSelected, "onSelected"),
|
15377
15384
|
!0
|
15378
|
-
),
|
15385
|
+
), De.on(
|
15379
15386
|
ks,
|
15380
15387
|
this.bind(this.onActiveChange, "onActiveChange")
|
15381
|
-
),
|
15388
|
+
), De.on(Sn, this.bind(this.onViewChange, "onViewChange")), Z(
|
15382
15389
|
this.devtools.isOpen,
|
15383
15390
|
(s) => {
|
15384
15391
|
s && this.cleanHelper();
|
@@ -15404,10 +15411,10 @@ class sg {
|
|
15404
15411
|
), e.removeEventListener(
|
15405
15412
|
"dragstart",
|
15406
15413
|
this.bind(this.onDragStart, "onDragStart")
|
15407
|
-
), e.removeEventListener("dragend", this.bind(this.onDragEnd, "onDragEnd")), e.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), e.removeEventListener("click", this.bind(this.onSelected, "onSelected")),
|
15414
|
+
), e.removeEventListener("dragend", this.bind(this.onDragEnd, "onDragEnd")), e.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), e.removeEventListener("click", this.bind(this.onSelected, "onSelected")), De.off(
|
15408
15415
|
ks,
|
15409
15416
|
this.bind(this.onActiveChange, "onActiveChange")
|
15410
|
-
),
|
15417
|
+
), De.off(
|
15411
15418
|
Sn,
|
15412
15419
|
this.bind(this.onViewChange, "onViewChange")
|
15413
15420
|
);
|
@@ -15561,7 +15568,7 @@ class sg {
|
|
15561
15568
|
this.setSelected(null), this.setHover(null), this.setDragging(null), this.setDropping(null);
|
15562
15569
|
}
|
15563
15570
|
async updateRect() {
|
15564
|
-
await
|
15571
|
+
await pn(100);
|
15565
15572
|
const t = n(this.selected), e = n(this.hover);
|
15566
15573
|
if (t) {
|
15567
15574
|
const s = t.el.getBoundingClientRect();
|
@@ -15583,7 +15590,7 @@ class sg {
|
|
15583
15590
|
this.lines.value = [];
|
15584
15591
|
return;
|
15585
15592
|
}
|
15586
|
-
await
|
15593
|
+
await pn(50);
|
15587
15594
|
const t = this.engine.simulator.renderer?.context?.__refs || {}, e = [], s = Object.keys(vs.nodes);
|
15588
15595
|
for (const o of s) {
|
15589
15596
|
const i = t[o];
|
@@ -15672,9 +15679,10 @@ const og = [
|
|
15672
15679
|
];
|
15673
15680
|
class ag {
|
15674
15681
|
constructor(t, e, s) {
|
15675
|
-
|
15676
|
-
|
15677
|
-
|
15682
|
+
X(this, "api");
|
15683
|
+
X(this, "remote");
|
15684
|
+
X(this, "debounceSend");
|
15685
|
+
X(this, "timer", null);
|
15678
15686
|
this.access = e, this.service = s, this.remote = t || "https://lcdp.vtj.pro", this.api = this.remote + yc, this.debounceSend = Jo(this.send.bind(this), 500), this.online(), this.bindGlobalError(), this.service && this.bindServerError(this.service);
|
15679
15687
|
}
|
15680
15688
|
isVtjUrl(t) {
|
@@ -15714,8 +15722,8 @@ class ag {
|
|
15714
15722
|
});
|
15715
15723
|
}
|
15716
15724
|
getSessionId() {
|
15717
|
-
let t =
|
15718
|
-
return t || (t = jl(),
|
15725
|
+
let t = dn.get(fo, { type: "session" });
|
15726
|
+
return t || (t = jl(), dn.save(fo, t, { type: "session" })), t;
|
15719
15727
|
}
|
15720
15728
|
send(t) {
|
15721
15729
|
const e = this.access.getData(), s = Ol(), { href: o, protocol: i, host: a } = location, l = document.referrer, c = Object.assign(
|
@@ -15748,9 +15756,14 @@ class ag {
|
|
15748
15756
|
});
|
15749
15757
|
}
|
15750
15758
|
async online() {
|
15751
|
-
|
15759
|
+
clearTimeout(this.timer), this.timer = setTimeout(
|
15760
|
+
() => {
|
15761
|
+
this.online();
|
15762
|
+
},
|
15763
|
+
5 * 60 * 1e3
|
15764
|
+
), this.debounceSend({
|
15752
15765
|
type: "online"
|
15753
|
-
})
|
15766
|
+
});
|
15754
15767
|
}
|
15755
15768
|
event(t) {
|
15756
15769
|
this.debounceSend({
|
@@ -15770,12 +15783,12 @@ class ag {
|
|
15770
15783
|
}
|
15771
15784
|
class lg {
|
15772
15785
|
constructor(t, e, s, o, i = null, a = null) {
|
15773
|
-
|
15774
|
-
|
15775
|
-
|
15776
|
-
|
15777
|
-
|
15778
|
-
|
15786
|
+
X(this, "app", null);
|
15787
|
+
X(this, "dsl", null);
|
15788
|
+
X(this, "nodeChange");
|
15789
|
+
X(this, "blockChange");
|
15790
|
+
X(this, "context", null);
|
15791
|
+
X(this, "file");
|
15779
15792
|
this.env = t, this.service = e, this.provider = s, this.report = o, this.project = i, this.designer = a, this.nodeChange = this.__onNodeChange.bind(this), this.blockChange = this.__onBlockChange.bind(this);
|
15780
15793
|
}
|
15781
15794
|
install(t, e) {
|
@@ -15865,7 +15878,7 @@ class lg {
|
|
15865
15878
|
file: t.toDsl()
|
15866
15879
|
});
|
15867
15880
|
}
|
15868
|
-
this.context = d,
|
15881
|
+
this.context = d, De.on(Sn, this.nodeChange), De.on(Ss, this.blockChange);
|
15869
15882
|
}
|
15870
15883
|
dispose() {
|
15871
15884
|
if (this.app) {
|
@@ -15878,7 +15891,7 @@ class lg {
|
|
15878
15891
|
}
|
15879
15892
|
this.app = null;
|
15880
15893
|
}
|
15881
|
-
this.dsl = null, this.context = null, this.file = null, ei(),
|
15894
|
+
this.dsl = null, this.context = null, this.file = null, ei(), De.off(Sn, this.nodeChange), De.off(Ss, this.blockChange);
|
15882
15895
|
}
|
15883
15896
|
updateChild(t, e) {
|
15884
15897
|
const s = e.children || e.nodes || [];
|
@@ -15913,13 +15926,13 @@ class lg {
|
|
15913
15926
|
class ig extends Go {
|
15914
15927
|
constructor(e) {
|
15915
15928
|
super();
|
15916
|
-
|
15917
|
-
|
15918
|
-
|
15919
|
-
|
15920
|
-
|
15921
|
-
|
15922
|
-
|
15929
|
+
X(this, "contentWindow", null);
|
15930
|
+
X(this, "renderer", null);
|
15931
|
+
X(this, "designer", mt(null));
|
15932
|
+
X(this, "engine");
|
15933
|
+
X(this, "materialPath");
|
15934
|
+
X(this, "rendered", C(Symbol()));
|
15935
|
+
X(this, "devtools", new tg());
|
15923
15936
|
const { engine: s, materialPath: o } = e;
|
15924
15937
|
this.engine = s, this.materialPath = o, window.Mock = da, Z(this.engine.current, () => {
|
15925
15938
|
this.refresh();
|
@@ -16103,10 +16116,10 @@ class ig extends Go {
|
|
16103
16116
|
}
|
16104
16117
|
class rg {
|
16105
16118
|
constructor(t, e) {
|
16106
|
-
|
16107
|
-
|
16108
|
-
|
16109
|
-
|
16119
|
+
X(this, "components", []);
|
16120
|
+
X(this, "componentMap", /* @__PURE__ */ new Map());
|
16121
|
+
X(this, "groups", C([]));
|
16122
|
+
X(this, "caches", {});
|
16110
16123
|
this.service = t, this.provider = e;
|
16111
16124
|
}
|
16112
16125
|
getCateoryComponents(t, e) {
|
@@ -16195,29 +16208,29 @@ const Aa = Symbol("VtjEngine"), _s = "SAVE_BLOCK_FILE_FINISH";
|
|
16195
16208
|
class Zg extends Go {
|
16196
16209
|
constructor(e) {
|
16197
16210
|
super();
|
16198
|
-
|
16199
|
-
|
16200
|
-
|
16201
|
-
|
16202
|
-
|
16203
|
-
|
16204
|
-
|
16205
|
-
|
16206
|
-
|
16207
|
-
|
16208
|
-
|
16209
|
-
|
16210
|
-
|
16211
|
-
|
16211
|
+
X(this, "app");
|
16212
|
+
X(this, "skeleton");
|
16213
|
+
X(this, "container");
|
16214
|
+
X(this, "service");
|
16215
|
+
X(this, "assets");
|
16216
|
+
X(this, "simulator");
|
16217
|
+
X(this, "emitter", De);
|
16218
|
+
X(this, "project", C(null));
|
16219
|
+
X(this, "current", C(null));
|
16220
|
+
X(this, "context", C(null));
|
16221
|
+
X(this, "isEmptyCurrent", C(!1));
|
16222
|
+
X(this, "history", C(null));
|
16223
|
+
X(this, "provider");
|
16224
|
+
X(this, "adapter");
|
16212
16225
|
/**
|
16213
16226
|
* 当current变化时,更新该值,用于通知组件更新
|
16214
16227
|
*/
|
16215
|
-
|
16216
|
-
|
16217
|
-
|
16218
|
-
|
16219
|
-
|
16220
|
-
|
16228
|
+
X(this, "changed", C(Symbol()));
|
16229
|
+
X(this, "access");
|
16230
|
+
X(this, "remote");
|
16231
|
+
X(this, "report");
|
16232
|
+
X(this, "checkVersion", !0);
|
16233
|
+
X(this, "openApi");
|
16221
16234
|
this.options = e;
|
16222
16235
|
const {
|
16223
16236
|
container: s,
|
@@ -16249,7 +16262,7 @@ class Zg extends Go {
|
|
16249
16262
|
}), this.assets = new rg(this.service, this.provider), this.simulator = new ig({
|
16250
16263
|
engine: this,
|
16251
16264
|
materialPath: d
|
16252
|
-
}), this.access = b || new ii({ alert:
|
16265
|
+
}), this.access = b || new ii({ alert: un, ...bc }), this.remote = f, this.report = new ag(f, this.access, this.service), this.checkVersion = x, this.bindEvents(), this.init(i).then(this.render.bind(this)), Ts(this.dispose.bind(this));
|
16253
16266
|
}
|
16254
16267
|
async init(e) {
|
16255
16268
|
const s = await this.service.init(e).catch((o) => (Dt.warn("VTJEngine service init fail.", o), null));
|
@@ -16269,7 +16282,7 @@ class Zg extends Go {
|
|
16269
16282
|
Dt.warn("VTJEngine constructor param [ container ] is undefined");
|
16270
16283
|
}
|
16271
16284
|
bindEvents() {
|
16272
|
-
|
16285
|
+
De.on(Ll, (e) => this.saveProject(e)), De.on(zl, (e) => this.saveBlockFile(e)), De.on(Ul, (e) => this.saveBlockFile(e)), De.on(Fl, () => this.saveMaterials()), De.on(ks, (e) => this.activeFile(e)), De.on(Wl, () => this.publish()), De.on(Jl, () => this.publishCurrent()), De.on(Ss, (e) => this.changeFile(e)), De.on(Sn, () => this.changeCurrentFile()), De.on(Hl, (e) => this.saveHistory(e)), De.on(Gl, (e) => this.loadHistory(e)), De.on(ql, () => this.genSource());
|
16273
16286
|
}
|
16274
16287
|
async activeFile(e) {
|
16275
16288
|
await at();
|
@@ -16622,7 +16635,7 @@ const Bt = $({
|
|
16622
16635
|
defaultSetter() {
|
16623
16636
|
const { value: r, computedSetters: t } = this;
|
16624
16637
|
let e = typeof r;
|
16625
|
-
e === "object" && (Array.isArray(r) ? e = "array" :
|
16638
|
+
e === "object" && (Array.isArray(r) ? e = "array" : en(r) ? e = "object" : ri(r) && (e = "function"));
|
16626
16639
|
const s = wn.getByType(e) || [];
|
16627
16640
|
return s.length ? (t.find((o) => s.includes(o.name)) || t[0])?.name : t[0]?.name;
|
16628
16641
|
}
|
@@ -16709,7 +16722,7 @@ const Bt = $({
|
|
16709
16722
|
c.value = N.elementWidth.value;
|
16710
16723
|
}
|
16711
16724
|
}, g = C(), b = C(), f = C(), x = C(), w = C(), k = C(), _ = C(), A = C(), E = C(!1), j = C(!1);
|
16712
|
-
return
|
16725
|
+
return tn(async () => {
|
16713
16726
|
await i() || await o(), d();
|
16714
16727
|
}), t({
|
16715
16728
|
brand: g,
|
@@ -16856,7 +16869,7 @@ const Bt = $({
|
|
16856
16869
|
setup(r, { emit: t }) {
|
16857
16870
|
const e = r, s = t, o = C(!1), i = C(""), a = C(
|
16858
16871
|
e.setters.find((k) => k.name === e.defaultSetter) || e.setters[0]
|
16859
|
-
), l = C(e.value), c = V(() => !!
|
16872
|
+
), l = C(e.value), c = V(() => !!en(l.value)), d = {
|
16860
16873
|
[a.value.name]: l.value
|
16861
16874
|
}, v = (k) => {
|
16862
16875
|
d[a.value.name] = l.value, a.value = k, l.value = d[k.name] ?? void 0, m(l.value);
|
@@ -16879,13 +16892,13 @@ const Bt = $({
|
|
16879
16892
|
}, g = () => {
|
16880
16893
|
s("remove", e.name);
|
16881
16894
|
}, b = () => {
|
16882
|
-
o.value = !0, i.value =
|
16895
|
+
o.value = !0, i.value = en(l.value) ? l.value.value : "";
|
16883
16896
|
}, f = () => {
|
16884
16897
|
o.value = !1, i.value = "";
|
16885
16898
|
}, x = async (k) => Xe(k, e.context, !0) ? (d[a.value.name] = l.value, l.value = k, s("change", k), !0) : !1, w = async () => {
|
16886
16899
|
await Jt("确定要解除绑定吗?") && (f(), l.value = void 0, s("change", void 0));
|
16887
16900
|
};
|
16888
|
-
return (k, _) => (u(), y(n(
|
16901
|
+
return (k, _) => (u(), y(n(cn), {
|
16889
16902
|
class: "v-setter",
|
16890
16903
|
size: "small",
|
16891
16904
|
"label-positon": "left"
|
@@ -16897,7 +16910,7 @@ const Bt = $({
|
|
16897
16910
|
content: e.title
|
16898
16911
|
}, {
|
16899
16912
|
default: h(() => [
|
16900
|
-
|
16913
|
+
Q(ne(e.label || e.name), 1)
|
16901
16914
|
]),
|
16902
16915
|
_: 1
|
16903
16916
|
}, 8, ["content"])) : (u(), R("span", {
|
@@ -16926,10 +16939,10 @@ const Bt = $({
|
|
16926
16939
|
"model-value": "JSExpression"
|
16927
16940
|
}, {
|
16928
16941
|
prefix: h(() => [
|
16929
|
-
|
16942
|
+
Q(ne(gg))
|
16930
16943
|
]),
|
16931
16944
|
suffix: h(() => [
|
16932
|
-
|
16945
|
+
Q(ne(fg))
|
16933
16946
|
]),
|
16934
16947
|
_: 1
|
16935
16948
|
})) : I("", !0)
|
@@ -16961,7 +16974,7 @@ const Bt = $({
|
|
16961
16974
|
"is-placeholder": A.name !== a.value.name
|
16962
16975
|
})
|
16963
16976
|
}, null, 8, ["class"]),
|
16964
|
-
|
16977
|
+
Q(" " + ne(A.label), 1)
|
16965
16978
|
]),
|
16966
16979
|
_: 2
|
16967
16980
|
}, 1032, ["command"]))), 128))
|
@@ -17283,7 +17296,7 @@ const Bt = $({
|
|
17283
17296
|
default: h(() => [
|
17284
17297
|
p(n(ia)),
|
17285
17298
|
T("span", null, [
|
17286
|
-
|
17299
|
+
Q(ne(n(i)?.model.name) + ": ", 1),
|
17287
17300
|
T("i", null, ne(n(i)?.model.id), 1)
|
17288
17301
|
])
|
17289
17302
|
]),
|
@@ -17336,11 +17349,11 @@ const Bt = $({
|
|
17336
17349
|
]),
|
17337
17350
|
_: 1
|
17338
17351
|
})) : I("", !0),
|
17339
|
-
n(i) ? I("", !0) : (u(), y(n(
|
17352
|
+
n(i) ? I("", !0) : (u(), y(n(Re), {
|
17340
17353
|
key: 2,
|
17341
17354
|
description: "请在左侧画布选中节点"
|
17342
17355
|
})),
|
17343
|
-
n(i) && n(i).model.locked ? (u(), y(n(
|
17356
|
+
n(i) && n(i).model.locked ? (u(), y(n(Re), {
|
17344
17357
|
key: 3,
|
17345
17358
|
"image-size": 1,
|
17346
17359
|
description: "节点已被锁定, 禁止编辑"
|
@@ -17462,7 +17475,7 @@ export {
|
|
17462
17475
|
Bt as a4,
|
17463
17476
|
Gt as a5,
|
17464
17477
|
re as a6,
|
17465
|
-
|
17478
|
+
un as a7,
|
17466
17479
|
xe as a8,
|
17467
17480
|
Jt as a9,
|
17468
17481
|
Ne as aa,
|