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