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