@opentiny/tiny-engine-plugin-bridge 1.0.4-alpha.0 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +307 -365
- package/dist/style.css +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { reactive as j, ref as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
P.get(`/app-center/api/apps/schema/${t}`).then((n) => {
|
|
14
|
-
Le(n.bridge), Fe(n.utils);
|
|
2
|
+
import { reactive as j, ref as x, watchEffect as X, resolveComponent as m, openBlock as h, createElementBlock as L, createElementVNode as f, createVNode as s, withCtx as c, Fragment as ee, renderList as te, normalizeClass as ne, withModifiers as W, toDisplayString as U, computed as E, watch as oe, onMounted as ae, createBlock as C, createTextVNode as O, withDirectives as se, vShow as re, createCommentVNode as T, nextTick as ce } from "vue";
|
|
3
|
+
import { SearchEmpty as le, PluginSetting as ie, VueMonaco as de, SvgButton as Z, PluginPanel as pe } from "@opentiny/tiny-engine-common";
|
|
4
|
+
import { useApp as b, useCanvas as $, useResource as k, useNotify as N, useModal as ue, getMergeMeta as me } from "@opentiny/tiny-engine-meta-register";
|
|
5
|
+
import { isVsCodeEnv as ge } from "@opentiny/tiny-engine-common/js/environments";
|
|
6
|
+
import { useHttp as _e } from "@opentiny/tiny-engine-http";
|
|
7
|
+
import { generateBridge as ye, generateUtil as fe } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
|
|
8
|
+
import { Search as ve, Form as he, Input as Re, Button as Ee, FormItem as Ce, Checkbox as Ve, RadioGroup as Se, Radio as xe } from "@opentiny/vue";
|
|
9
|
+
import { iconSearch as be } from "@opentiny/vue-icon";
|
|
10
|
+
const B = _e(), Te = (n, t) => B.get(`/app-center/api/apps/extension/list?app=${n}&category=${t}`), Ue = (n) => B.post("/app-center/api/apps/extension/create", n), ke = (n) => B.post("/app-center/api/apps/extension/update", n), Ne = (n) => B.get(`/app-center/api/apps/extension/delete?${n}`), Ie = (n) => {
|
|
11
|
+
B.get(`/app-center/api/apps/schema/${n}`).then((t) => {
|
|
12
|
+
ye(t.bridge), fe(t.utils);
|
|
15
13
|
});
|
|
16
14
|
}, i = j({
|
|
17
15
|
actionType: "",
|
|
@@ -21,8 +19,8 @@ const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${
|
|
|
21
19
|
resources: [],
|
|
22
20
|
resourceNames: {},
|
|
23
21
|
refresh: !1,
|
|
24
|
-
id:
|
|
25
|
-
}),
|
|
22
|
+
id: ""
|
|
23
|
+
}), K = {
|
|
26
24
|
name: "",
|
|
27
25
|
type: "npm",
|
|
28
26
|
content: {
|
|
@@ -33,236 +31,229 @@ const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${
|
|
|
33
31
|
destructuring: !0,
|
|
34
32
|
main: ""
|
|
35
33
|
}
|
|
36
|
-
},
|
|
34
|
+
}, Be = {
|
|
37
35
|
name: "",
|
|
38
36
|
type: "function",
|
|
39
37
|
content: {
|
|
40
38
|
type: "JSFunction",
|
|
41
39
|
value: ""
|
|
42
40
|
}
|
|
43
|
-
},
|
|
41
|
+
}, V = {
|
|
44
42
|
Util: "utils",
|
|
45
43
|
Bridge: "bridge"
|
|
46
|
-
},
|
|
44
|
+
}, A = {
|
|
47
45
|
Npm: "npm",
|
|
48
46
|
Function: "function"
|
|
49
|
-
},
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
},
|
|
47
|
+
}, we = {
|
|
48
|
+
[V.Util]: "新建工具类",
|
|
49
|
+
[V.Bridge]: "新建桥接源"
|
|
50
|
+
}, I = {
|
|
53
51
|
Read: "read",
|
|
54
52
|
Edit: "edit"
|
|
55
|
-
},
|
|
56
|
-
i.resourceNames[
|
|
57
|
-
},
|
|
58
|
-
const
|
|
59
|
-
return
|
|
60
|
-
},
|
|
61
|
-
i.actionType =
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
i.type =
|
|
66
|
-
},
|
|
67
|
-
i.category =
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
53
|
+
}, Oe = (n) => i.resourceNames[n], Le = (n, t) => {
|
|
54
|
+
i.resourceNames[n] = t;
|
|
55
|
+
}, Ae = (n) => {
|
|
56
|
+
const t = b().appInfoState.selectedId;
|
|
57
|
+
return Te(t, n);
|
|
58
|
+
}, G = () => i.actionType, D = (n) => {
|
|
59
|
+
i.actionType = n;
|
|
60
|
+
}, Fe = () => i.resource, M = (n = K) => {
|
|
61
|
+
n || (n = i.category === A.Function ? Be : K), i.resource = n;
|
|
62
|
+
}, F = () => i.type, Q = (n) => {
|
|
63
|
+
i.type = n;
|
|
64
|
+
}, Y = (n) => {
|
|
65
|
+
i.category = n;
|
|
66
|
+
}, q = () => i.category, z = (...n) => {
|
|
67
|
+
ge && Ie(...n);
|
|
68
|
+
}, Pe = (n, t, u) => {
|
|
69
|
+
const { updateUtils: e } = $().canvasApi.value;
|
|
70
|
+
G() === I.Edit ? (n.id = i.resource.id, ke(n).then((o) => {
|
|
71
|
+
if (o) {
|
|
72
|
+
const _ = k().resState[n.category].findIndex((l) => l.name === o.name);
|
|
73
|
+
k().resState[n.category][_] = o, e([o]), z(b().appInfoState.selectedId), N({
|
|
75
74
|
type: "success",
|
|
76
75
|
message: "修改成功"
|
|
77
|
-
}),
|
|
76
|
+
}), u("refresh", i.type), i.refresh = !0, t();
|
|
78
77
|
}
|
|
79
|
-
})) :
|
|
80
|
-
|
|
78
|
+
})) : Ue(n).then((o) => {
|
|
79
|
+
o && (k().resState[n.category].push(o), e([o]), z(b().appInfoState.selectedId), N({
|
|
81
80
|
type: "success",
|
|
82
81
|
message: "创建成功"
|
|
83
|
-
}),
|
|
82
|
+
}), u("refresh", i.type), i.refresh = !0, t());
|
|
84
83
|
});
|
|
85
|
-
},
|
|
86
|
-
var
|
|
87
|
-
const e = `app=${
|
|
88
|
-
|
|
89
|
-
if (
|
|
90
|
-
const y =
|
|
91
|
-
|
|
84
|
+
}, De = (n, t, u) => {
|
|
85
|
+
var _;
|
|
86
|
+
const e = `app=${b().appInfoState.selectedId}&id=${(_ = i.resource) == null ? void 0 : _.id}`, { deleteUtils: o } = $().canvasApi.value;
|
|
87
|
+
Ne(e).then((l) => {
|
|
88
|
+
if (l) {
|
|
89
|
+
const y = k().resState[i.type].findIndex((v) => v.name === l.name);
|
|
90
|
+
k().resState[i.type].splice(y, 1), o([l]), z(b().appInfoState.selectedId), N({
|
|
92
91
|
type: "success",
|
|
93
92
|
message: "删除成功"
|
|
94
|
-
}),
|
|
93
|
+
}), u("refresh", i.type), i.refresh = !0, t();
|
|
95
94
|
}
|
|
96
95
|
});
|
|
97
96
|
};
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
for (const [e, o] of
|
|
101
|
-
|
|
102
|
-
return
|
|
103
|
-
},
|
|
97
|
+
const H = (n, t) => {
|
|
98
|
+
const u = n.__vccOpts || n;
|
|
99
|
+
for (const [e, o] of t)
|
|
100
|
+
u[e] = o;
|
|
101
|
+
return u;
|
|
102
|
+
}, Me = {
|
|
104
103
|
components: {
|
|
105
|
-
TinySearch:
|
|
104
|
+
TinySearch: ve,
|
|
105
|
+
TinyIconSearch: be(),
|
|
106
|
+
SearchEmpty: le
|
|
106
107
|
},
|
|
107
108
|
props: {
|
|
108
109
|
name: {
|
|
109
110
|
type: String,
|
|
110
|
-
default:
|
|
111
|
+
default: V.Util
|
|
111
112
|
}
|
|
112
113
|
},
|
|
113
114
|
emits: ["open"],
|
|
114
|
-
setup(
|
|
115
|
-
const
|
|
115
|
+
setup(n, { emit: t }) {
|
|
116
|
+
const u = x([]), e = j({
|
|
116
117
|
resourceList: [],
|
|
117
118
|
activeIndex: -1,
|
|
118
119
|
searchValue: ""
|
|
119
|
-
}), o = (a = e.resourceList,
|
|
120
|
-
e.resourceList = await
|
|
120
|
+
}), o = (a = e.resourceList, d = e.searchValue) => a.filter((r) => r.name.toLowerCase().indexOf(d.toLowerCase()) > -1), _ = async (a) => {
|
|
121
|
+
e.resourceList = await Ae(a), Le(
|
|
121
122
|
a,
|
|
122
|
-
Array.isArray(e.resourceList) ? e.resourceList.map((
|
|
123
|
-
),
|
|
123
|
+
Array.isArray(e.resourceList) ? e.resourceList.map((d) => d.name) : []
|
|
124
|
+
), u.value = o(e.resourceList);
|
|
124
125
|
};
|
|
125
|
-
return
|
|
126
|
-
|
|
126
|
+
return X(async () => {
|
|
127
|
+
_(n.name);
|
|
127
128
|
}), {
|
|
128
129
|
state: e,
|
|
129
|
-
list:
|
|
130
|
+
list: u,
|
|
130
131
|
add: (a) => {
|
|
131
|
-
D(""),
|
|
132
|
+
D(""), Q(n.name), M(""), Y(a), t("open");
|
|
132
133
|
},
|
|
133
|
-
openRead: (a,
|
|
134
|
-
e.activeIndex =
|
|
134
|
+
openRead: (a, d) => {
|
|
135
|
+
e.activeIndex = d, M(a), D(I.Edit), t("open");
|
|
135
136
|
},
|
|
136
|
-
openEdit: (a,
|
|
137
|
-
e.activeIndex =
|
|
137
|
+
openEdit: (a, d) => {
|
|
138
|
+
e.activeIndex = d, M(a), D(I.Edit), Q(n.name), Y(a.type), t("open");
|
|
138
139
|
},
|
|
139
|
-
refresh:
|
|
140
|
-
getType:
|
|
141
|
-
RESOURCE_TYPE:
|
|
140
|
+
refresh: _,
|
|
141
|
+
getType: F,
|
|
142
|
+
RESOURCE_TYPE: V,
|
|
142
143
|
searchBridgeData: (a) => {
|
|
143
|
-
|
|
144
|
+
u.value = o(e.resourceList, a);
|
|
144
145
|
}
|
|
145
146
|
};
|
|
146
147
|
}
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
const y = l("tiny-search"), f = l("svg-icon");
|
|
153
|
-
return h(), x("div", tt, [
|
|
154
|
-
v("div", nt, [
|
|
148
|
+
}, qe = { class: "manage-panel" }, Ge = { class: "manage-panel-search" }, Ye = { class: "list" }, ze = ["onClick"], je = { class: "item-label" };
|
|
149
|
+
function He(n, t, u, e, o, _) {
|
|
150
|
+
const l = m("tiny-icon-search"), y = m("tiny-search"), v = m("svg-icon"), R = m("search-empty");
|
|
151
|
+
return h(), L("div", qe, [
|
|
152
|
+
f("div", Ge, [
|
|
155
153
|
s(y, {
|
|
156
154
|
modelValue: e.state.searchValue,
|
|
157
155
|
"onUpdate:modelValue": [
|
|
158
|
-
|
|
156
|
+
t[0] || (t[0] = (a) => e.state.searchValue = a),
|
|
159
157
|
e.searchBridgeData
|
|
160
158
|
],
|
|
161
159
|
clearable: "",
|
|
162
|
-
placeholder: "
|
|
163
|
-
},
|
|
160
|
+
placeholder: "搜索"
|
|
161
|
+
}, {
|
|
162
|
+
prefix: c(() => [
|
|
163
|
+
s(l)
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
164
167
|
]),
|
|
165
|
-
|
|
166
|
-
(h(!0),
|
|
167
|
-
key:
|
|
168
|
-
class:
|
|
169
|
-
onClick:
|
|
168
|
+
f("div", Ye, [
|
|
169
|
+
(h(!0), L(ee, null, te(e.list, (a, d) => (h(), L("div", {
|
|
170
|
+
key: a.name,
|
|
171
|
+
class: ne(["list-item", d === e.state.activeIndex ? "active" : ""]),
|
|
172
|
+
onClick: W((r) => e.openEdit(a, d), ["stop"])
|
|
170
173
|
}, [
|
|
171
|
-
s(
|
|
172
|
-
|
|
173
|
-
s(
|
|
174
|
+
s(v, { name: "resources" }),
|
|
175
|
+
f("div", je, U(a.name), 1),
|
|
176
|
+
s(v, {
|
|
174
177
|
class: "setting-icon",
|
|
175
178
|
name: "setting",
|
|
176
|
-
onClick:
|
|
179
|
+
onClick: W((r) => e.openEdit(a, d), ["stop"])
|
|
177
180
|
}, null, 8, ["onClick"])
|
|
178
|
-
], 10,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
name: "empty"
|
|
183
|
-
}),
|
|
184
|
-
ct
|
|
185
|
-
]))
|
|
181
|
+
], 10, ze))), 128)),
|
|
182
|
+
s(R, {
|
|
183
|
+
isShow: !e.list.length
|
|
184
|
+
}, null, 8, ["isShow"])
|
|
186
185
|
])
|
|
187
186
|
]);
|
|
188
187
|
}
|
|
189
|
-
const
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
},
|
|
188
|
+
const Je = /* @__PURE__ */ H(Me, [["render", He], ["__scopeId", "data-v-c8f41500"]]);
|
|
189
|
+
const J = x(!1), We = () => {
|
|
190
|
+
J.value = !0, ce(() => window.dispatchEvent(new Event("resize")));
|
|
191
|
+
}, P = () => {
|
|
192
|
+
J.value = !1;
|
|
193
|
+
}, Ke = {
|
|
195
194
|
components: {
|
|
196
|
-
TinyForm:
|
|
197
|
-
TinyInput:
|
|
198
|
-
TinyButton:
|
|
199
|
-
TinyFormItem:
|
|
200
|
-
TinyCheckbox:
|
|
201
|
-
PluginSetting:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
TinyRadioGroup: Ce,
|
|
207
|
-
TinyRadio: Te,
|
|
208
|
-
SvgButton: ne
|
|
195
|
+
TinyForm: he,
|
|
196
|
+
TinyInput: Re,
|
|
197
|
+
TinyButton: Ee,
|
|
198
|
+
TinyFormItem: Ce,
|
|
199
|
+
TinyCheckbox: Ve,
|
|
200
|
+
PluginSetting: ie,
|
|
201
|
+
MonacoEditor: de,
|
|
202
|
+
TinyRadioGroup: Se,
|
|
203
|
+
TinyRadio: xe,
|
|
204
|
+
SvgButton: Z
|
|
209
205
|
},
|
|
210
|
-
setup(
|
|
211
|
-
const
|
|
212
|
-
theme: De(),
|
|
213
|
-
roundedSelection: !0,
|
|
214
|
-
automaticLayout: !0,
|
|
215
|
-
autoIndent: !0,
|
|
216
|
-
formatOnPaste: !0,
|
|
206
|
+
setup(n, { emit: t }) {
|
|
207
|
+
const u = {
|
|
217
208
|
language: "javascript",
|
|
218
209
|
mouseStyle: "default",
|
|
219
210
|
minimap: { enabled: !1 },
|
|
220
211
|
// 禁用滚动条边边一直显示的边框
|
|
221
212
|
overviewRulerBorder: !1,
|
|
222
213
|
renderLineHighlightOnlyWhenFocus: !0
|
|
223
|
-
}, { confirm: e } =
|
|
224
|
-
resource:
|
|
214
|
+
}, { confirm: e } = ue(), o = j({
|
|
215
|
+
resource: E(() => Fe()),
|
|
225
216
|
name: "",
|
|
226
217
|
value: "",
|
|
227
218
|
content: {},
|
|
228
|
-
status:
|
|
229
|
-
category:
|
|
230
|
-
mode:
|
|
231
|
-
var
|
|
232
|
-
return ((
|
|
219
|
+
status: E(() => G() === I.Edit),
|
|
220
|
+
category: E(() => q() === A.Npm),
|
|
221
|
+
mode: E(() => {
|
|
222
|
+
var r;
|
|
223
|
+
return ((r = me("engine.config")) == null ? void 0 : r.dslMode) !== "Vue";
|
|
233
224
|
}),
|
|
234
225
|
isInstance: !1,
|
|
235
|
-
title:
|
|
236
|
-
const
|
|
237
|
-
return
|
|
226
|
+
title: E(() => {
|
|
227
|
+
const r = G() === I.Edit ? "编辑" : "添加", g = F() === V.Bridge ? "桥接源" : "工具类";
|
|
228
|
+
return r + g;
|
|
238
229
|
}),
|
|
239
|
-
type:
|
|
240
|
-
}),
|
|
241
|
-
const
|
|
242
|
-
let
|
|
243
|
-
o.content.destructuring && (o.name && o.name === o.content.exportName ?
|
|
244
|
-
const
|
|
245
|
-
return `import ${
|
|
246
|
-
export { ${
|
|
230
|
+
type: A.Npm
|
|
231
|
+
}), _ = E(() => {
|
|
232
|
+
const r = o.name || "name";
|
|
233
|
+
let g = r;
|
|
234
|
+
o.content.destructuring && (o.name && o.name === o.content.exportName ? g = `{ ${o.content.exportName || "exportName"} }` : g = `{ ${o.content.exportName || "exportName"} as ${r} }`);
|
|
235
|
+
const S = `${o.content.package || "package"}${o.content.main || ""}`;
|
|
236
|
+
return `import ${g} from '${S}'
|
|
237
|
+
export { ${r} }`;
|
|
247
238
|
});
|
|
248
|
-
|
|
249
|
-
var
|
|
250
|
-
o.name = o.resource.name, o.content = o.resource.content || {}, o.value = ((
|
|
251
|
-
}),
|
|
239
|
+
X(() => {
|
|
240
|
+
var r, g;
|
|
241
|
+
o.name = o.resource.name, o.content = o.resource.content || {}, o.value = ((g = (r = o.resource) == null ? void 0 : r.content) == null ? void 0 : g.value) || "", o.type = q();
|
|
242
|
+
}), oe(
|
|
252
243
|
() => o.isInstance,
|
|
253
|
-
(
|
|
254
|
-
|
|
244
|
+
(r) => {
|
|
245
|
+
r || (o.content.instance = "");
|
|
255
246
|
}
|
|
256
247
|
);
|
|
257
|
-
const
|
|
258
|
-
return
|
|
248
|
+
const l = x(null), y = x(null);
|
|
249
|
+
return ae(() => window.dispatchEvent(new Event("resize"))), {
|
|
259
250
|
rules: {
|
|
260
251
|
name: [
|
|
261
252
|
{ required: !0, message: "必填", trigger: "change" },
|
|
262
253
|
{
|
|
263
|
-
validator: (
|
|
264
|
-
const
|
|
265
|
-
Array.isArray(
|
|
254
|
+
validator: (r, g, S) => {
|
|
255
|
+
const w = Oe(F());
|
|
256
|
+
Array.isArray(w) && w.includes(g) ? S(new Error("资源名称已存在")) : S();
|
|
266
257
|
},
|
|
267
258
|
trigger: "change"
|
|
268
259
|
}
|
|
@@ -271,39 +262,39 @@ export { ${c} }`;
|
|
|
271
262
|
"content.exportName": [{ required: !0, message: "必填", trigger: "change" }],
|
|
272
263
|
"content.instanceName": { required: !0, message: "必填", trigger: "change" }
|
|
273
264
|
},
|
|
274
|
-
resourceForm:
|
|
275
|
-
editor:
|
|
265
|
+
resourceForm: y,
|
|
266
|
+
editor: l,
|
|
276
267
|
state: o,
|
|
277
|
-
codePreview:
|
|
278
|
-
isOpen:
|
|
279
|
-
closePanel:
|
|
268
|
+
codePreview: _,
|
|
269
|
+
isOpen: J,
|
|
270
|
+
closePanel: P,
|
|
280
271
|
save: () => {
|
|
281
|
-
const
|
|
282
|
-
category:
|
|
283
|
-
type:
|
|
272
|
+
const r = {
|
|
273
|
+
category: F(),
|
|
274
|
+
type: q(),
|
|
284
275
|
name: o.name,
|
|
285
|
-
app:
|
|
276
|
+
app: b().appInfoState.selectedId,
|
|
286
277
|
content: o.category ? o.content : {
|
|
287
278
|
type: "JSFunction",
|
|
288
|
-
value:
|
|
279
|
+
value: l.value.getEditor().getValue()
|
|
289
280
|
}
|
|
290
281
|
};
|
|
291
|
-
|
|
292
|
-
if (!
|
|
293
|
-
|
|
282
|
+
y.value.validate((g) => {
|
|
283
|
+
if (!g) {
|
|
284
|
+
N({
|
|
294
285
|
type: "error",
|
|
295
286
|
message: "请检查必填项"
|
|
296
287
|
});
|
|
297
288
|
return;
|
|
298
289
|
}
|
|
299
|
-
if (!o.category && !
|
|
300
|
-
|
|
290
|
+
if (!o.category && !l.value.getEditor().getValue()) {
|
|
291
|
+
N({
|
|
301
292
|
type: "error",
|
|
302
293
|
message: "function 内容必填"
|
|
303
294
|
});
|
|
304
295
|
return;
|
|
305
296
|
}
|
|
306
|
-
|
|
297
|
+
Pe(r, P, t);
|
|
307
298
|
});
|
|
308
299
|
},
|
|
309
300
|
deleteReSource: () => {
|
|
@@ -311,45 +302,45 @@ export { ${c} }`;
|
|
|
311
302
|
title: "删除资源",
|
|
312
303
|
message: "如果删除正在使用的资源,将无法正常预览页面,确认要删除吗?",
|
|
313
304
|
exec: () => {
|
|
314
|
-
|
|
305
|
+
De(o.name, P, t);
|
|
315
306
|
}
|
|
316
307
|
});
|
|
317
308
|
},
|
|
318
|
-
options:
|
|
319
|
-
handleChangeType: (
|
|
320
|
-
|
|
309
|
+
options: u,
|
|
310
|
+
handleChangeType: (r) => {
|
|
311
|
+
Y(r);
|
|
321
312
|
},
|
|
322
|
-
RESOURCE_CATEGORY:
|
|
313
|
+
RESOURCE_CATEGORY: A
|
|
323
314
|
};
|
|
324
315
|
}
|
|
325
|
-
},
|
|
326
|
-
function
|
|
327
|
-
const
|
|
328
|
-
return e.isOpen ? (h(),
|
|
329
|
-
title:
|
|
330
|
-
|
|
331
|
-
|
|
316
|
+
}, Qe = { class: "title-wrap" }, Xe = { class: "header-wrap" }, Ze = { class: "right-item" }, $e = { key: 2 }, et = { class: "code-preview" };
|
|
317
|
+
function tt(n, t, u, e, o, _) {
|
|
318
|
+
const l = m("tiny-button"), y = m("svg-button"), v = m("tiny-radio"), R = m("tiny-radio-group"), a = m("tiny-form-item"), d = m("tiny-input"), r = m("tiny-checkbox"), g = m("monaco-editor"), S = m("tiny-form"), w = m("plugin-setting");
|
|
319
|
+
return e.isOpen ? (h(), C(w, { key: 0 }, {
|
|
320
|
+
title: c(() => [
|
|
321
|
+
f("div", Qe, [
|
|
322
|
+
f("span", null, U(e.state.title), 1)
|
|
332
323
|
])
|
|
333
324
|
]),
|
|
334
|
-
header:
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
class: "delete-btn",
|
|
338
|
-
name: "delete",
|
|
339
|
-
onClick: e.deleteReSource
|
|
340
|
-
}, null, 8, ["onClick"]), [
|
|
341
|
-
[me, e.state.status]
|
|
342
|
-
]),
|
|
343
|
-
s(f, {
|
|
325
|
+
header: c(() => [
|
|
326
|
+
f("div", Xe, [
|
|
327
|
+
s(l, {
|
|
344
328
|
class: "save-btn",
|
|
345
329
|
type: "primary",
|
|
346
330
|
onClick: e.save
|
|
347
331
|
}, {
|
|
348
|
-
default:
|
|
349
|
-
|
|
350
|
-
]),
|
|
332
|
+
default: c(() => t[10] || (t[10] = [
|
|
333
|
+
O("保存")
|
|
334
|
+
])),
|
|
351
335
|
_: 1
|
|
352
336
|
}, 8, ["onClick"]),
|
|
337
|
+
se(s(y, {
|
|
338
|
+
class: "delete-btn",
|
|
339
|
+
name: "delete",
|
|
340
|
+
onClick: e.deleteReSource
|
|
341
|
+
}, null, 8, ["onClick"]), [
|
|
342
|
+
[re, e.state.status]
|
|
343
|
+
]),
|
|
353
344
|
s(y, {
|
|
354
345
|
class: "close-btn",
|
|
355
346
|
name: "close",
|
|
@@ -357,45 +348,45 @@ function Et(t, n, d, e, o, g) {
|
|
|
357
348
|
}, null, 8, ["onClick"])
|
|
358
349
|
])
|
|
359
350
|
]),
|
|
360
|
-
content:
|
|
361
|
-
s(
|
|
351
|
+
content: c(() => [
|
|
352
|
+
s(S, {
|
|
362
353
|
ref: "resourceForm",
|
|
363
354
|
class: "resource-form",
|
|
364
355
|
rules: e.rules,
|
|
365
356
|
model: e.state,
|
|
366
357
|
"validate-type": "text",
|
|
367
358
|
"inline-message": !0,
|
|
368
|
-
"label-position": "
|
|
359
|
+
"label-position": "top",
|
|
369
360
|
"label-align": !0
|
|
370
361
|
}, {
|
|
371
|
-
default:
|
|
372
|
-
|
|
373
|
-
e.state.status ? T("", !0) : (h(),
|
|
362
|
+
default: c(() => [
|
|
363
|
+
f("div", Ze, [
|
|
364
|
+
e.state.status ? T("", !0) : (h(), C(a, {
|
|
374
365
|
key: 0,
|
|
375
366
|
label: "工具类型",
|
|
376
367
|
prop: "type"
|
|
377
368
|
}, {
|
|
378
|
-
default:
|
|
379
|
-
s(
|
|
369
|
+
default: c(() => [
|
|
370
|
+
s(R, {
|
|
380
371
|
modelValue: e.state.type,
|
|
381
|
-
"onUpdate:modelValue":
|
|
372
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => e.state.type = p),
|
|
382
373
|
class: "resource-type-radio-group",
|
|
383
374
|
onChange: e.handleChangeType
|
|
384
375
|
}, {
|
|
385
|
-
default:
|
|
386
|
-
s(
|
|
376
|
+
default: c(() => [
|
|
377
|
+
s(v, {
|
|
387
378
|
label: e.RESOURCE_CATEGORY.Npm
|
|
388
379
|
}, {
|
|
389
|
-
default:
|
|
390
|
-
|
|
380
|
+
default: c(() => [
|
|
381
|
+
O(U(e.RESOURCE_CATEGORY.Npm), 1)
|
|
391
382
|
]),
|
|
392
383
|
_: 1
|
|
393
384
|
}, 8, ["label"]),
|
|
394
|
-
s(
|
|
385
|
+
s(v, {
|
|
395
386
|
label: e.RESOURCE_CATEGORY.Function
|
|
396
387
|
}, {
|
|
397
|
-
default:
|
|
398
|
-
|
|
388
|
+
default: c(() => [
|
|
389
|
+
O(U(e.RESOURCE_CATEGORY.Function), 1)
|
|
399
390
|
]),
|
|
400
391
|
_: 1
|
|
401
392
|
}, 8, ["label"])
|
|
@@ -405,137 +396,131 @@ function Et(t, n, d, e, o, g) {
|
|
|
405
396
|
]),
|
|
406
397
|
_: 1
|
|
407
398
|
})),
|
|
408
|
-
e.state.status ? T("", !0) : (h(),
|
|
399
|
+
e.state.status ? T("", !0) : (h(), C(a, {
|
|
409
400
|
key: 1,
|
|
410
|
-
label: "
|
|
401
|
+
label: "工具名称",
|
|
411
402
|
prop: "name"
|
|
412
403
|
}, {
|
|
413
|
-
default:
|
|
414
|
-
s(
|
|
404
|
+
default: c(() => [
|
|
405
|
+
s(d, {
|
|
415
406
|
modelValue: e.state.name,
|
|
416
|
-
"onUpdate:modelValue":
|
|
407
|
+
"onUpdate:modelValue": t[1] || (t[1] = (p) => e.state.name = p),
|
|
417
408
|
placeholder: "请输入工具类名称"
|
|
418
409
|
}, null, 8, ["modelValue"])
|
|
419
410
|
]),
|
|
420
411
|
_: 1
|
|
421
412
|
})),
|
|
422
|
-
e.state.category ? (h(),
|
|
413
|
+
e.state.category ? (h(), L("div", $e, [
|
|
423
414
|
s(a, {
|
|
424
|
-
label: "包名",
|
|
415
|
+
label: "npm包名",
|
|
425
416
|
prop: "content.package"
|
|
426
417
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
s(
|
|
418
|
+
default: c(() => [
|
|
419
|
+
s(d, {
|
|
429
420
|
modelValue: e.state.content.package,
|
|
430
|
-
"onUpdate:modelValue":
|
|
421
|
+
"onUpdate:modelValue": t[2] || (t[2] = (p) => e.state.content.package = p),
|
|
431
422
|
placeholder: "请输入npm包名称"
|
|
432
423
|
}, null, 8, ["modelValue"])
|
|
433
424
|
]),
|
|
434
425
|
_: 1
|
|
435
426
|
}),
|
|
436
427
|
s(a, {
|
|
437
|
-
label: "
|
|
428
|
+
label: "npm包导出名",
|
|
438
429
|
prop: "content.exportName"
|
|
439
430
|
}, {
|
|
440
|
-
default:
|
|
441
|
-
s(
|
|
431
|
+
default: c(() => [
|
|
432
|
+
s(d, {
|
|
442
433
|
modelValue: e.state.content.exportName,
|
|
443
|
-
"onUpdate:modelValue":
|
|
434
|
+
"onUpdate:modelValue": t[3] || (t[3] = (p) => e.state.content.exportName = p),
|
|
444
435
|
placeholder: "请输入npm包的导出名称"
|
|
445
436
|
}, null, 8, ["modelValue"])
|
|
446
437
|
]),
|
|
447
438
|
_: 1
|
|
448
439
|
}),
|
|
449
|
-
s(a, { label: "
|
|
450
|
-
default:
|
|
451
|
-
s(
|
|
440
|
+
s(a, { label: "" }, {
|
|
441
|
+
default: c(() => [
|
|
442
|
+
s(r, {
|
|
452
443
|
modelValue: e.state.content.destructuring,
|
|
453
|
-
"onUpdate:modelValue":
|
|
454
|
-
},
|
|
444
|
+
"onUpdate:modelValue": t[4] || (t[4] = (p) => e.state.content.destructuring = p)
|
|
445
|
+
}, {
|
|
446
|
+
default: c(() => t[11] || (t[11] = [
|
|
447
|
+
O("解构npm包")
|
|
448
|
+
])),
|
|
449
|
+
_: 1
|
|
450
|
+
}, 8, ["modelValue"])
|
|
455
451
|
]),
|
|
456
452
|
_: 1
|
|
457
453
|
}),
|
|
458
|
-
e.state.mode ? (h(),
|
|
454
|
+
e.state.mode ? (h(), C(a, {
|
|
459
455
|
key: 0,
|
|
460
456
|
label: "是否作为实例"
|
|
461
457
|
}, {
|
|
462
|
-
default:
|
|
463
|
-
s(
|
|
458
|
+
default: c(() => [
|
|
459
|
+
s(r, {
|
|
464
460
|
modelValue: e.state.isInstance,
|
|
465
|
-
"onUpdate:modelValue":
|
|
461
|
+
"onUpdate:modelValue": t[5] || (t[5] = (p) => e.state.isInstance = p)
|
|
466
462
|
}, null, 8, ["modelValue"])
|
|
467
463
|
]),
|
|
468
464
|
_: 1
|
|
469
465
|
})) : T("", !0),
|
|
470
|
-
e.state.isInstance ? (h(),
|
|
466
|
+
e.state.isInstance ? (h(), C(a, {
|
|
471
467
|
key: 1,
|
|
472
468
|
label: "实例名称",
|
|
473
469
|
prop: "content.instanceName"
|
|
474
470
|
}, {
|
|
475
|
-
default:
|
|
476
|
-
s(
|
|
471
|
+
default: c(() => [
|
|
472
|
+
s(d, {
|
|
477
473
|
modelValue: e.state.content.instance,
|
|
478
|
-
"onUpdate:modelValue":
|
|
474
|
+
"onUpdate:modelValue": t[6] || (t[6] = (p) => e.state.content.instance = p)
|
|
479
475
|
}, null, 8, ["modelValue"])
|
|
480
476
|
]),
|
|
481
477
|
_: 1
|
|
482
478
|
})) : T("", !0),
|
|
483
479
|
s(a, { label: "入口路径" }, {
|
|
484
|
-
default:
|
|
485
|
-
s(
|
|
480
|
+
default: c(() => [
|
|
481
|
+
s(d, {
|
|
486
482
|
modelValue: e.state.content.main,
|
|
487
|
-
"onUpdate:modelValue":
|
|
483
|
+
"onUpdate:modelValue": t[7] || (t[7] = (p) => e.state.content.main = p),
|
|
488
484
|
placeholder: "main"
|
|
489
485
|
}, null, 8, ["modelValue"])
|
|
490
486
|
]),
|
|
491
487
|
_: 1
|
|
492
488
|
}),
|
|
493
489
|
s(a, { label: "版本号" }, {
|
|
494
|
-
default:
|
|
495
|
-
s(
|
|
490
|
+
default: c(() => [
|
|
491
|
+
s(d, {
|
|
496
492
|
modelValue: e.state.content.version,
|
|
497
|
-
"onUpdate:modelValue":
|
|
493
|
+
"onUpdate:modelValue": t[8] || (t[8] = (p) => e.state.content.version = p),
|
|
498
494
|
placeholder: "latest"
|
|
499
495
|
}, null, 8, ["modelValue"])
|
|
500
496
|
]),
|
|
501
497
|
_: 1
|
|
502
498
|
}),
|
|
503
499
|
s(a, null, {
|
|
504
|
-
label:
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}, {
|
|
512
|
-
default: r(() => [
|
|
513
|
-
s(U, { class: "cdn-tips-icon" })
|
|
514
|
-
]),
|
|
515
|
-
_: 1
|
|
516
|
-
})
|
|
517
|
-
])
|
|
518
|
-
]),
|
|
519
|
-
default: r(() => [
|
|
520
|
-
s(u, {
|
|
500
|
+
label: c(() => t[12] || (t[12] = [
|
|
501
|
+
f("div", { class: "cdn-label-wrap" }, [
|
|
502
|
+
f("span", null, "CDN")
|
|
503
|
+
], -1)
|
|
504
|
+
])),
|
|
505
|
+
default: c(() => [
|
|
506
|
+
s(d, {
|
|
521
507
|
modelValue: e.state.content.cdnLink,
|
|
522
|
-
"onUpdate:modelValue":
|
|
523
|
-
placeholder: "
|
|
524
|
-
}, null, 8, ["modelValue"])
|
|
508
|
+
"onUpdate:modelValue": t[9] || (t[9] = (p) => e.state.content.cdnLink = p),
|
|
509
|
+
placeholder: "CDN"
|
|
510
|
+
}, null, 8, ["modelValue"]),
|
|
511
|
+
t[13] || (t[13] = f("div", { class: "tip" }, "浏览器直接可用的生产包链接,请确保可用,否则可能会造成页面预览失败", -1))
|
|
525
512
|
]),
|
|
526
513
|
_: 1
|
|
527
514
|
}),
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
])
|
|
538
|
-
])) : (h(), R(ae, {
|
|
515
|
+
s(a, { label: "生成utils.js代码预览" }, {
|
|
516
|
+
default: c(() => [
|
|
517
|
+
f("div", et, [
|
|
518
|
+
f("pre", null, U(e.codePreview), 1)
|
|
519
|
+
])
|
|
520
|
+
]),
|
|
521
|
+
_: 1
|
|
522
|
+
})
|
|
523
|
+
])) : (h(), C(g, {
|
|
539
524
|
key: 3,
|
|
540
525
|
ref: "editor",
|
|
541
526
|
value: e.state.value,
|
|
@@ -550,113 +535,70 @@ function Et(t, n, d, e, o, g) {
|
|
|
550
535
|
_: 1
|
|
551
536
|
})) : T("", !0);
|
|
552
537
|
}
|
|
553
|
-
const
|
|
554
|
-
const
|
|
538
|
+
const nt = /* @__PURE__ */ H(Ke, [["render", tt], ["__scopeId", "data-v-0d684f9e"]]);
|
|
539
|
+
const ot = {
|
|
555
540
|
components: {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
BridgeManage: it,
|
|
561
|
-
BridgeSetting: Rt,
|
|
562
|
-
LinkButton: xe
|
|
541
|
+
PluginPanel: pe,
|
|
542
|
+
SvgButton: Z,
|
|
543
|
+
BridgeManage: Je,
|
|
544
|
+
BridgeSetting: nt
|
|
563
545
|
},
|
|
564
546
|
setup() {
|
|
565
|
-
const
|
|
547
|
+
const n = x(V.Util), t = x(null), u = E(() => we[n.value]);
|
|
566
548
|
return {
|
|
567
|
-
addResource: (
|
|
568
|
-
|
|
569
|
-
},
|
|
570
|
-
RESOURCE_TYPE: E,
|
|
571
|
-
activedName: t,
|
|
572
|
-
switchTab: (a) => {
|
|
573
|
-
I(), q(a.name);
|
|
549
|
+
addResource: (l) => {
|
|
550
|
+
n.value == t.value.add(l);
|
|
574
551
|
},
|
|
552
|
+
RESOURCE_TYPE: V,
|
|
553
|
+
activedName: n,
|
|
575
554
|
openBridgePanel: () => {
|
|
576
|
-
|
|
555
|
+
We();
|
|
577
556
|
},
|
|
578
|
-
closePanel:
|
|
579
|
-
|
|
580
|
-
|
|
557
|
+
closePanel: P,
|
|
558
|
+
refreshList: (l) => {
|
|
559
|
+
l == t.value.refresh(l);
|
|
581
560
|
},
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
},
|
|
585
|
-
bridge: n,
|
|
586
|
-
docsUrl: o,
|
|
587
|
-
utilsRef: d,
|
|
588
|
-
tips: e,
|
|
589
|
-
isVsCodeEnv: oe
|
|
561
|
+
utilsRef: t,
|
|
562
|
+
tips: u
|
|
590
563
|
};
|
|
591
564
|
}
|
|
592
565
|
};
|
|
593
|
-
function
|
|
594
|
-
const
|
|
595
|
-
return h(), R
|
|
566
|
+
function at(n, t, u, e, o, _) {
|
|
567
|
+
const l = m("svg-button"), y = m("bridge-manage"), v = m("bridge-setting"), R = m("plugin-panel");
|
|
568
|
+
return h(), C(R, {
|
|
596
569
|
title: "资源管理",
|
|
597
570
|
isCloseLeft: !1,
|
|
598
571
|
onClose: e.closePanel
|
|
599
572
|
}, {
|
|
600
|
-
header:
|
|
601
|
-
s(
|
|
602
|
-
s(f, {
|
|
573
|
+
header: c(() => [
|
|
574
|
+
s(l, {
|
|
603
575
|
name: "add-utils",
|
|
604
576
|
placement: "left",
|
|
605
577
|
tips: e.tips,
|
|
606
|
-
onClick:
|
|
578
|
+
onClick: t[0] || (t[0] = (a) => e.addResource("npm"))
|
|
607
579
|
}, null, 8, ["tips"])
|
|
608
580
|
]),
|
|
609
|
-
content:
|
|
610
|
-
s(
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
}, {
|
|
617
|
-
default: r(() => [
|
|
618
|
-
s(b, {
|
|
619
|
-
name: e.RESOURCE_TYPE.Util,
|
|
620
|
-
title: "工具类"
|
|
621
|
-
}, {
|
|
622
|
-
default: r(() => [
|
|
623
|
-
s(_, {
|
|
624
|
-
ref: "utilsRef",
|
|
625
|
-
name: e.RESOURCE_TYPE.Util,
|
|
626
|
-
onOpen: e.openBridgePanel
|
|
627
|
-
}, null, 8, ["name", "onOpen"])
|
|
628
|
-
]),
|
|
629
|
-
_: 1
|
|
630
|
-
}, 8, ["name"]),
|
|
631
|
-
e.isVsCodeEnv ? (h(), R(b, {
|
|
632
|
-
key: 0,
|
|
633
|
-
name: e.RESOURCE_TYPE.Bridge,
|
|
634
|
-
title: "桥接源"
|
|
635
|
-
}, {
|
|
636
|
-
default: r(() => [
|
|
637
|
-
s(_, {
|
|
638
|
-
ref: "bridge",
|
|
639
|
-
name: e.RESOURCE_TYPE.Bridge,
|
|
640
|
-
onOpen: e.openBridgePanel
|
|
641
|
-
}, null, 8, ["name", "onOpen"])
|
|
642
|
-
]),
|
|
643
|
-
_: 1
|
|
644
|
-
}, 8, ["name"])) : T("", !0)
|
|
645
|
-
]),
|
|
646
|
-
_: 1
|
|
647
|
-
}, 8, ["modelValue", "onClick"]),
|
|
648
|
-
s(u, { onRefresh: e.refreshList }, null, 8, ["onRefresh"])
|
|
581
|
+
content: c(() => [
|
|
582
|
+
s(y, {
|
|
583
|
+
ref: "utilsRef",
|
|
584
|
+
name: e.RESOURCE_TYPE.Util,
|
|
585
|
+
onOpen: e.openBridgePanel
|
|
586
|
+
}, null, 8, ["name", "onOpen"]),
|
|
587
|
+
s(v, { onRefresh: e.refreshList }, null, 8, ["onRefresh"])
|
|
649
588
|
]),
|
|
650
589
|
_: 1
|
|
651
590
|
}, 8, ["onClose"]);
|
|
652
591
|
}
|
|
653
|
-
const
|
|
654
|
-
id: "
|
|
592
|
+
const st = /* @__PURE__ */ H(ot, [["render", at], ["__scopeId", "data-v-c14cfd0a"]]), rt = {
|
|
593
|
+
id: "engine.plugins.bridge",
|
|
655
594
|
title: "资源管理",
|
|
656
|
-
|
|
595
|
+
type: "plugins",
|
|
657
596
|
align: "top",
|
|
658
|
-
|
|
597
|
+
icon: "plugin-icon-sresources"
|
|
598
|
+
}, yt = {
|
|
599
|
+
...rt,
|
|
600
|
+
entry: st
|
|
659
601
|
};
|
|
660
602
|
export {
|
|
661
|
-
|
|
603
|
+
yt as default
|
|
662
604
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.manage-panel[data-v-
|
|
1
|
+
.manage-panel[data-v-c8f41500]{height:100%;display:flex;flex-direction:column;position:relative}.manage-panel .manage-panel-search[data-v-c8f41500]{padding:0 12px 12px}.manage-panel .add-button[data-v-c8f41500]{align-self:flex-end;margin:6px}.manage-panel .list[data-v-c8f41500]{flex:1;border-top:1px solid var(--ti-lowcode-tabs-border-color);overflow:auto}.manage-panel .list-item[data-v-c8f41500]{height:28px;display:grid;grid-template-columns:16px 1fr auto;column-gap:8px;align-items:center;padding:0 12px;position:relative;color:var(--ti-lowcode-bridge-list-color);cursor:pointer;font-size:12px}.manage-panel .list-item[data-v-c8f41500]:hover,.manage-panel .list-item.active[data-v-c8f41500]{background:var(--ti-lowcode-bridge-list-bg)}.manage-panel .list-item svg[data-v-c8f41500]{color:var(--ti-lowcode-toolbar-more-hover-color)}.plugin-setting[data-v-0d684f9e] .icon-wrap{margin-right:8px}.plugin-setting .resource-form .tip[data-v-0d684f9e]{font-size:11px;line-height:18px;margin-top:8px;color:var(--ti-lowcode-datasource-tip-color)}.plugin-setting .resource-form[data-v-0d684f9e] .tiny-form-item__label .cdn-tips-icon{margin-left:4px}.plugin-setting .title-wrap[data-v-0d684f9e]{font-size:12px;font-weight:700;color:var(--ti-lowcode-data-source-color)}.plugin-setting .title-wrap .help-link[data-v-0d684f9e]{display:inline-block;color:var(--ti-lowcode-common-primary-color);font-size:12px;margin-left:16px}.plugin-setting .title-wrap .help-link[data-v-0d684f9e]:hover{text-decoration:underline}.plugin-setting .header-wrap[data-v-0d684f9e]{display:flex;align-items:center;column-gap:6px}.plugin-setting .header-wrap .tiny-button[data-v-0d684f9e]{width:40px;padding:0;min-width:40px;margin-right:2px}.plugin-setting .monaco-editor[data-v-0d684f9e]{height:500px;margin-top:8px;border:1px solid var(--ti-lowcode-birdge-editor-border-color)}.plugin-setting .resource-form-footer[data-v-0d684f9e]{padding:12px 0 12px 80px}.plugin-setting .resource-form-footer .tiny-svg[data-v-0d684f9e]{margin-right:6px}.plugin-setting .resource-form-footer .del[data-v-0d684f9e]:hover{background-color:var(--ti-lowcode-delete-button-hover-bg)}.plugin-setting .cdn-label-wrap[data-v-0d684f9e]{display:flex;align-items:center}.code-preview[data-v-0d684f9e]{font-size:14px;line-height:20px;color:var(--ti-lowcode-birdge-code-preview-color);background-color:var(--ti-lowcode-birdge-code-preview-bg-color);border-radius:6px}.code-preview .pre-title[data-v-0d684f9e]{font-family:Microsoft YaHei}.code-preview>pre[data-v-0d684f9e]{margin:0;padding:8px 20px;font-family:Consolas,Courier New,monospace}[data-v-c14cfd0a] .tiny-button{border-radius:4px;height:24px;line-height:24px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-engine-plugin-bridge",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"homepage": "https://opentiny.design/tiny-engine",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@opentiny/tiny-engine-
|
|
28
|
-
"@opentiny/tiny-engine-
|
|
29
|
-
"@opentiny/tiny-engine-
|
|
30
|
-
"@opentiny/tiny-engine-http": "1.0.3-alpha.0",
|
|
31
|
-
"@opentiny/vue": "~3.10.0",
|
|
32
|
-
"@opentiny/vue-icon": "~3.10.0"
|
|
27
|
+
"@opentiny/tiny-engine-common": "2.0.0-alpha.2",
|
|
28
|
+
"@opentiny/tiny-engine-http": "2.0.0-alpha.2",
|
|
29
|
+
"@opentiny/tiny-engine-meta-register": "2.0.0-alpha.2"
|
|
33
30
|
},
|
|
34
31
|
"devDependencies": {
|
|
32
|
+
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.0.0-alpha.2",
|
|
35
33
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
36
|
-
"@vitejs/plugin-vue-jsx": "^1.
|
|
34
|
+
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
37
35
|
"vite": "^4.3.7"
|
|
38
36
|
},
|
|
39
37
|
"peerDependencies": {
|
|
38
|
+
"@opentiny/vue": "^3.14.0",
|
|
39
|
+
"@opentiny/vue-icon": "^3.14.0",
|
|
40
40
|
"vue": "^3.4.15"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "695ecd00f21aa39965a9ddb02590ae274f92cd8e"
|
|
43
43
|
}
|