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