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