@opentiny/tiny-engine-plugin-bridge 1.0.2-beta.0 → 1.0.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 +283 -262
- package/dist/style.css +1 -1
- package/package.json +21 -11
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 H, 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 K, 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 Q, 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 = H({
|
|
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
|
+
}), X = {
|
|
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
|
+
}, G = () => i.actionType, D = (t) => {
|
|
61
61
|
i.actionType = t;
|
|
62
|
-
},
|
|
63
|
-
t || (t = i.category ===
|
|
64
|
-
},
|
|
62
|
+
}, Qe = () => i.resource, Y = (t = X) => {
|
|
63
|
+
t || (t = i.category === F.Function ? He : X), i.resource = t;
|
|
64
|
+
}, A = () => i.type, M = (t) => {
|
|
65
65
|
i.type = t;
|
|
66
|
-
},
|
|
66
|
+
}, q = (t) => {
|
|
67
67
|
i.category = t;
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
68
|
+
}, Z = () => i.category, z = (...t) => {
|
|
69
|
+
oe && ze(...t);
|
|
70
|
+
}, Xe = (t, n, d) => {
|
|
71
|
+
G() === 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, Q([e]), z(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), Q([e]), z(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]), z(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 = H({
|
|
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(""), M(t.name), Y(""), q(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), M(t.name), q(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: K((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: K((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 J =
|
|
191
|
-
J.value = !0,
|
|
192
|
-
},
|
|
189
|
+
const it = /* @__PURE__ */ j($e, [["render", lt], ["__scopeId", "data-v-70da6acf"]]);
|
|
190
|
+
const J = V(!1), dt = () => {
|
|
191
|
+
J.value = !0, _e(() => window.dispatchEvent(new Event("resize")));
|
|
192
|
+
}, I = () => {
|
|
193
193
|
J.value = !1;
|
|
194
|
-
},
|
|
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 = H({
|
|
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(() => G() === O.Edit),
|
|
229
|
+
category: C(() => Z() === 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 = G() === 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) || "";
|
|
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:
|
|
274
|
+
resourceForm: f,
|
|
275
|
+
editor: y,
|
|
276
|
+
state: o,
|
|
277
|
+
codePreview: g,
|
|
270
278
|
isOpen: J,
|
|
271
|
-
closePanel:
|
|
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: Z(),
|
|
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
|
+
q(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
|
+
}, W = (t) => (ee("data-v-63e8b39d"), 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__ */ W(() => /* @__PURE__ */ v("span", null, "CDN", -1)), vt = { class: "code-preview" }, ht = /* @__PURE__ */ W(() => /* @__PURE__ */ v("span", { class: "pre-title" }, "生成的", -1)), bt = /* @__PURE__ */ W(() => /* @__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,36 @@ 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
|
-
|
|
385
|
+
default: r(() => [
|
|
386
|
+
s(_, {
|
|
379
387
|
label: e.RESOURCE_CATEGORY.Npm,
|
|
380
388
|
class: "resource-type-radio-item"
|
|
381
389
|
}, {
|
|
382
|
-
default:
|
|
383
|
-
|
|
390
|
+
default: r(() => [
|
|
391
|
+
k(w(e.RESOURCE_CATEGORY.Npm), 1)
|
|
384
392
|
]),
|
|
385
393
|
_: 1
|
|
386
394
|
}, 8, ["label"]),
|
|
387
|
-
|
|
395
|
+
s(_, {
|
|
388
396
|
label: e.RESOURCE_CATEGORY.Function,
|
|
389
397
|
class: "resource-type-radio-item"
|
|
390
398
|
}, {
|
|
391
|
-
default:
|
|
392
|
-
|
|
399
|
+
default: r(() => [
|
|
400
|
+
k(w(e.RESOURCE_CATEGORY.Function), 1)
|
|
393
401
|
]),
|
|
394
402
|
_: 1
|
|
395
403
|
}, 8, ["label"])
|
|
@@ -399,84 +407,84 @@ function gt(t, n, d, e, r, m) {
|
|
|
399
407
|
]),
|
|
400
408
|
_: 1
|
|
401
409
|
})),
|
|
402
|
-
e.state.status ?
|
|
410
|
+
e.state.status ? T("", !0) : (h(), R(a, {
|
|
403
411
|
key: 1,
|
|
404
412
|
label: "名称",
|
|
405
413
|
prop: "name"
|
|
406
414
|
}, {
|
|
407
|
-
default:
|
|
408
|
-
|
|
415
|
+
default: r(() => [
|
|
416
|
+
s(u, {
|
|
409
417
|
modelValue: e.state.name,
|
|
410
418
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => e.state.name = p),
|
|
411
|
-
placeholder: "
|
|
419
|
+
placeholder: "请输入工具类名称"
|
|
412
420
|
}, null, 8, ["modelValue"])
|
|
413
421
|
]),
|
|
414
422
|
_: 1
|
|
415
423
|
})),
|
|
416
|
-
e.state.category ? (
|
|
417
|
-
|
|
424
|
+
e.state.category ? (h(), x("div", gt, [
|
|
425
|
+
s(a, {
|
|
418
426
|
label: "包名",
|
|
419
427
|
prop: "content.package"
|
|
420
428
|
}, {
|
|
421
|
-
default:
|
|
422
|
-
|
|
429
|
+
default: r(() => [
|
|
430
|
+
s(u, {
|
|
423
431
|
modelValue: e.state.content.package,
|
|
424
432
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => e.state.content.package = p),
|
|
425
|
-
placeholder: "
|
|
433
|
+
placeholder: "请输入npm包名称"
|
|
426
434
|
}, null, 8, ["modelValue"])
|
|
427
435
|
]),
|
|
428
436
|
_: 1
|
|
429
437
|
}),
|
|
430
|
-
|
|
438
|
+
s(a, {
|
|
431
439
|
label: "导出名称",
|
|
432
440
|
prop: "content.exportName"
|
|
433
441
|
}, {
|
|
434
|
-
default:
|
|
435
|
-
|
|
442
|
+
default: r(() => [
|
|
443
|
+
s(u, {
|
|
436
444
|
modelValue: e.state.content.exportName,
|
|
437
445
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => e.state.content.exportName = p),
|
|
438
|
-
placeholder: "
|
|
446
|
+
placeholder: "请输入npm包的导出名称"
|
|
439
447
|
}, null, 8, ["modelValue"])
|
|
440
448
|
]),
|
|
441
449
|
_: 1
|
|
442
450
|
}),
|
|
443
|
-
|
|
444
|
-
default:
|
|
445
|
-
|
|
451
|
+
s(a, { label: "是否解构" }, {
|
|
452
|
+
default: r(() => [
|
|
453
|
+
s(c, {
|
|
446
454
|
modelValue: e.state.content.destructuring,
|
|
447
455
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => e.state.content.destructuring = p)
|
|
448
456
|
}, null, 8, ["modelValue"])
|
|
449
457
|
]),
|
|
450
458
|
_: 1
|
|
451
459
|
}),
|
|
452
|
-
e.state.mode ? (
|
|
460
|
+
e.state.mode ? (h(), R(a, {
|
|
453
461
|
key: 0,
|
|
454
462
|
label: "是否作为实例"
|
|
455
463
|
}, {
|
|
456
|
-
default:
|
|
457
|
-
|
|
464
|
+
default: r(() => [
|
|
465
|
+
s(m, {
|
|
458
466
|
modelValue: e.state.isInstance,
|
|
459
467
|
"onUpdate:modelValue": n[5] || (n[5] = (p) => e.state.isInstance = p)
|
|
460
468
|
}, null, 8, ["modelValue"])
|
|
461
469
|
]),
|
|
462
470
|
_: 1
|
|
463
|
-
})) :
|
|
464
|
-
e.state.isInstance ? (
|
|
471
|
+
})) : T("", !0),
|
|
472
|
+
e.state.isInstance ? (h(), R(a, {
|
|
465
473
|
key: 1,
|
|
466
474
|
label: "实例名称",
|
|
467
475
|
prop: "content.instanceName"
|
|
468
476
|
}, {
|
|
469
|
-
default:
|
|
470
|
-
|
|
477
|
+
default: r(() => [
|
|
478
|
+
s(u, {
|
|
471
479
|
modelValue: e.state.content.instance,
|
|
472
480
|
"onUpdate:modelValue": n[6] || (n[6] = (p) => e.state.content.instance = p)
|
|
473
481
|
}, null, 8, ["modelValue"])
|
|
474
482
|
]),
|
|
475
483
|
_: 1
|
|
476
|
-
})) :
|
|
477
|
-
|
|
478
|
-
default:
|
|
479
|
-
|
|
484
|
+
})) : T("", !0),
|
|
485
|
+
s(a, { label: "入口路径" }, {
|
|
486
|
+
default: r(() => [
|
|
487
|
+
s(u, {
|
|
480
488
|
modelValue: e.state.content.main,
|
|
481
489
|
"onUpdate:modelValue": n[7] || (n[7] = (p) => e.state.content.main = p),
|
|
482
490
|
placeholder: "main"
|
|
@@ -484,9 +492,9 @@ function gt(t, n, d, e, r, m) {
|
|
|
484
492
|
]),
|
|
485
493
|
_: 1
|
|
486
494
|
}),
|
|
487
|
-
|
|
488
|
-
default:
|
|
489
|
-
|
|
495
|
+
s(a, { label: "版本号" }, {
|
|
496
|
+
default: r(() => [
|
|
497
|
+
s(u, {
|
|
490
498
|
modelValue: e.state.content.version,
|
|
491
499
|
"onUpdate:modelValue": n[8] || (n[8] = (p) => e.state.content.version = p),
|
|
492
500
|
placeholder: "latest"
|
|
@@ -494,32 +502,42 @@ function gt(t, n, d, e, r, m) {
|
|
|
494
502
|
]),
|
|
495
503
|
_: 1
|
|
496
504
|
}),
|
|
497
|
-
|
|
498
|
-
label:
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
505
|
+
s(a, null, {
|
|
506
|
+
label: r(() => [
|
|
507
|
+
v("div", yt, [
|
|
508
|
+
ft,
|
|
509
|
+
s(L, {
|
|
502
510
|
effect: "dark",
|
|
503
511
|
content: "浏览器直接可用的生产包链接,请确保可用,否则可能会造成页面预览失败",
|
|
504
512
|
placement: "top"
|
|
505
513
|
}, {
|
|
506
|
-
default:
|
|
507
|
-
|
|
514
|
+
default: r(() => [
|
|
515
|
+
s(U, { class: "cdn-tips-icon" })
|
|
508
516
|
]),
|
|
509
517
|
_: 1
|
|
510
518
|
})
|
|
511
519
|
])
|
|
512
520
|
]),
|
|
513
|
-
default:
|
|
514
|
-
|
|
521
|
+
default: r(() => [
|
|
522
|
+
s(u, {
|
|
515
523
|
modelValue: e.state.content.cdnLink,
|
|
516
524
|
"onUpdate:modelValue": n[9] || (n[9] = (p) => e.state.content.cdnLink = p),
|
|
517
525
|
placeholder: "浏览器直接可用的生产包链接,请确保可用,否则可能会造成页面预览失败"
|
|
518
526
|
}, null, 8, ["modelValue"])
|
|
519
527
|
]),
|
|
520
528
|
_: 1
|
|
521
|
-
})
|
|
522
|
-
|
|
529
|
+
}),
|
|
530
|
+
v("div", vt, [
|
|
531
|
+
v("pre", null, [
|
|
532
|
+
k("// "),
|
|
533
|
+
ht,
|
|
534
|
+
k(" utils.js "),
|
|
535
|
+
bt,
|
|
536
|
+
k(`
|
|
537
|
+
` + w(e.codePreview), 1)
|
|
538
|
+
])
|
|
539
|
+
])
|
|
540
|
+
])) : (h(), R(ae, {
|
|
523
541
|
key: 3,
|
|
524
542
|
ref: "editor",
|
|
525
543
|
value: e.state.value,
|
|
@@ -532,112 +550,115 @@ function gt(t, n, d, e, r, m) {
|
|
|
532
550
|
}, 8, ["rules", "model"])
|
|
533
551
|
]),
|
|
534
552
|
_: 1
|
|
535
|
-
})) :
|
|
553
|
+
})) : T("", !0);
|
|
536
554
|
}
|
|
537
|
-
const
|
|
538
|
-
const
|
|
555
|
+
const Rt = /* @__PURE__ */ j(pt, [["render", Et], ["__scopeId", "data-v-63e8b39d"]]);
|
|
556
|
+
const Ct = {
|
|
539
557
|
components: {
|
|
540
|
-
TinyTabs:
|
|
541
|
-
TinyTabItem:
|
|
542
|
-
PluginPanel:
|
|
543
|
-
SvgButton:
|
|
544
|
-
BridgeManage:
|
|
545
|
-
BridgeSetting:
|
|
558
|
+
TinyTabs: Ve,
|
|
559
|
+
TinyTabItem: Se,
|
|
560
|
+
PluginPanel: Ie,
|
|
561
|
+
SvgButton: ne,
|
|
562
|
+
BridgeManage: it,
|
|
563
|
+
BridgeSetting: Rt,
|
|
564
|
+
LinkButton: xe
|
|
546
565
|
},
|
|
547
566
|
setup() {
|
|
548
|
-
const t =
|
|
567
|
+
const t = V(E.Util), n = V(null), d = V(null), e = C(() => je[t.value]), o = Be().getDocsUrl("bridge");
|
|
549
568
|
return {
|
|
550
|
-
addResource: (
|
|
551
|
-
t.value === E.Util ? d.value.add(
|
|
569
|
+
addResource: (a) => {
|
|
570
|
+
t.value === E.Util ? d.value.add(a) : n.value.add(a);
|
|
552
571
|
},
|
|
553
572
|
RESOURCE_TYPE: E,
|
|
554
573
|
activedName: t,
|
|
555
|
-
switchTab: (
|
|
556
|
-
|
|
574
|
+
switchTab: (a) => {
|
|
575
|
+
I(), M(a.name);
|
|
557
576
|
},
|
|
558
577
|
openBridgePanel: () => {
|
|
559
|
-
|
|
578
|
+
dt();
|
|
560
579
|
},
|
|
561
|
-
closePanel:
|
|
580
|
+
closePanel: I,
|
|
562
581
|
openUtilPanel: () => {
|
|
563
|
-
|
|
582
|
+
I();
|
|
564
583
|
},
|
|
565
|
-
refreshList: (
|
|
566
|
-
|
|
584
|
+
refreshList: (a) => {
|
|
585
|
+
a === E.Util ? d.value.refresh(a) : n.value.refresh(a);
|
|
567
586
|
},
|
|
568
587
|
bridge: n,
|
|
569
|
-
|
|
588
|
+
docsUrl: o,
|
|
589
|
+
utilsRef: d,
|
|
570
590
|
tips: e,
|
|
571
|
-
isVsCodeEnv:
|
|
591
|
+
isVsCodeEnv: oe
|
|
572
592
|
};
|
|
573
593
|
}
|
|
574
594
|
};
|
|
575
|
-
function
|
|
576
|
-
const y = l("
|
|
577
|
-
return
|
|
595
|
+
function Tt(t, n, d, e, o, g) {
|
|
596
|
+
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");
|
|
597
|
+
return h(), R(c, {
|
|
578
598
|
title: "资源管理",
|
|
579
599
|
isCloseLeft: !1,
|
|
580
600
|
onClose: e.closePanel
|
|
581
601
|
}, {
|
|
582
|
-
header:
|
|
583
|
-
|
|
602
|
+
header: r(() => [
|
|
603
|
+
s(y, { href: e.docsUrl }, null, 8, ["href"]),
|
|
604
|
+
s(f, {
|
|
584
605
|
name: "add-utils",
|
|
585
606
|
placement: "left",
|
|
586
607
|
tips: e.tips,
|
|
587
|
-
onClick: n[0] || (n[0] = (
|
|
608
|
+
onClick: n[0] || (n[0] = (m) => e.addResource("npm"))
|
|
588
609
|
}, null, 8, ["tips"])
|
|
589
610
|
]),
|
|
590
|
-
content:
|
|
591
|
-
|
|
611
|
+
content: r(() => [
|
|
612
|
+
s(a, {
|
|
592
613
|
modelValue: e.activedName,
|
|
593
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
614
|
+
"onUpdate:modelValue": n[1] || (n[1] = (m) => e.activedName = m),
|
|
594
615
|
class: "tabs full-width-tabs",
|
|
595
616
|
"tab-style": "button-card",
|
|
596
617
|
onClick: e.switchTab
|
|
597
618
|
}, {
|
|
598
|
-
default:
|
|
599
|
-
|
|
619
|
+
default: r(() => [
|
|
620
|
+
s(b, {
|
|
600
621
|
name: e.RESOURCE_TYPE.Util,
|
|
601
622
|
title: "工具类"
|
|
602
623
|
}, {
|
|
603
|
-
default:
|
|
604
|
-
|
|
605
|
-
ref: "
|
|
624
|
+
default: r(() => [
|
|
625
|
+
s(_, {
|
|
626
|
+
ref: "utilsRef",
|
|
606
627
|
name: e.RESOURCE_TYPE.Util,
|
|
607
628
|
onOpen: e.openBridgePanel
|
|
608
629
|
}, null, 8, ["name", "onOpen"])
|
|
609
630
|
]),
|
|
610
631
|
_: 1
|
|
611
632
|
}, 8, ["name"]),
|
|
612
|
-
e.isVsCodeEnv ? (
|
|
633
|
+
e.isVsCodeEnv ? (h(), R(b, {
|
|
613
634
|
key: 0,
|
|
614
635
|
name: e.RESOURCE_TYPE.Bridge,
|
|
615
636
|
title: "桥接源"
|
|
616
637
|
}, {
|
|
617
|
-
default:
|
|
618
|
-
|
|
638
|
+
default: r(() => [
|
|
639
|
+
s(_, {
|
|
619
640
|
ref: "bridge",
|
|
620
641
|
name: e.RESOURCE_TYPE.Bridge,
|
|
621
642
|
onOpen: e.openBridgePanel
|
|
622
643
|
}, null, 8, ["name", "onOpen"])
|
|
623
644
|
]),
|
|
624
645
|
_: 1
|
|
625
|
-
}, 8, ["name"])) :
|
|
646
|
+
}, 8, ["name"])) : T("", !0)
|
|
626
647
|
]),
|
|
627
648
|
_: 1
|
|
628
649
|
}, 8, ["modelValue", "onClick"]),
|
|
629
|
-
|
|
650
|
+
s(u, { onRefresh: e.refreshList }, null, 8, ["onRefresh"])
|
|
630
651
|
]),
|
|
631
652
|
_: 1
|
|
632
653
|
}, 8, ["onClose"]);
|
|
633
654
|
}
|
|
634
|
-
const
|
|
655
|
+
const Vt = /* @__PURE__ */ j(Ct, [["render", Tt], ["__scopeId", "data-v-e04eb86e"]]), Ft = {
|
|
635
656
|
id: "Bridge",
|
|
636
657
|
title: "资源管理",
|
|
637
658
|
icon: "plugin-icon-sresources",
|
|
638
659
|
align: "top",
|
|
639
|
-
component:
|
|
660
|
+
component: Vt
|
|
640
661
|
};
|
|
641
662
|
export {
|
|
642
|
-
|
|
663
|
+
Ft as default
|
|
643
664
|
};
|
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-63e8b39d] .icon-wrap{margin-right:8px}.plugin-setting .resource-form[data-v-63e8b39d] .tiny-form-item__label .cdn-tips-icon{margin-left:4px}.plugin-setting .title-wrap .help-link[data-v-63e8b39d]{display:inline-block;color:var(--ti-lowcode-common-primary-color);font-size:12px;margin-left:16px}.plugin-setting .title-wrap .help-link[data-v-63e8b39d]:hover{text-decoration:underline}.plugin-setting .header-wrap[data-v-63e8b39d]{display:flex;align-items:center;column-gap:16px}.plugin-setting .header-wrap .delete-btn[data-v-63e8b39d]{color:var(--ti-lowcode-common-text-color-5)}.plugin-setting .header-wrap .delete-btn[data-v-63e8b39d]:hover{color:var(--ti-lowcode-common-primary-text-color)}.plugin-setting .resource-type-radio-item[data-v-63e8b39d]{--ti-radio-text-color: var(--ti-lowcode-common-secondary-text-color)}.plugin-setting .monaco-editor[data-v-63e8b39d]{height:500px;margin-top:8px;border:1px solid var(--ti-lowcode-birdge-editor-border-color)}.plugin-setting .resource-form-footer[data-v-63e8b39d]{padding:12px 0 12px 80px}.plugin-setting .resource-form-footer .tiny-svg[data-v-63e8b39d]{margin-right:6px}.plugin-setting .resource-form-footer .del[data-v-63e8b39d]:hover{background-color:var(--ti-lowcode-delete-button-hover-bg)}.plugin-setting .cdn-label-wrap[data-v-63e8b39d]{display:flex;align-items:center}.code-preview[data-v-63e8b39d]{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-63e8b39d]{font-family:Microsoft YaHei}.code-preview>pre[data-v-63e8b39d]{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,30 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-engine-plugin-bridge",
|
|
3
|
-
"version": "1.0.2
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "vite build"
|
|
9
|
-
},
|
|
10
7
|
"main": "dist/index.js",
|
|
11
8
|
"module": "dist/index.js",
|
|
12
9
|
"files": [
|
|
13
10
|
"dist"
|
|
14
11
|
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/opentiny/tiny-engine",
|
|
15
|
+
"directory": "packages/plugins/bridge"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/opentiny/tiny-engine/issues"
|
|
19
|
+
},
|
|
20
|
+
"author": "OpenTiny Team",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"homepage": "https://opentiny.design/tiny-engine",
|
|
15
23
|
"dependencies": {
|
|
16
|
-
"@opentiny/tiny-engine-canvas": "^1.0.3-beta.0",
|
|
17
|
-
"@opentiny/tiny-engine-common": "^1.0.1-beta.0",
|
|
18
|
-
"@opentiny/tiny-engine-controller": "^1.0.1-beta.0",
|
|
19
|
-
"@opentiny/tiny-engine-http": "^1.0.1-beta.0",
|
|
20
24
|
"@opentiny/vue": "~3.10.0",
|
|
21
25
|
"@opentiny/vue-icon": "~3.10.0",
|
|
22
|
-
"vue": "3.2.45"
|
|
26
|
+
"vue": "3.2.45",
|
|
27
|
+
"@opentiny/tiny-engine-canvas": "1.0.2",
|
|
28
|
+
"@opentiny/tiny-engine-common": "1.0.1",
|
|
29
|
+
"@opentiny/tiny-engine-http": "1.0.1",
|
|
30
|
+
"@opentiny/tiny-engine-controller": "1.0.2"
|
|
23
31
|
},
|
|
24
32
|
"devDependencies": {
|
|
25
33
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
26
34
|
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
27
35
|
"vite": "^4.3.7"
|
|
28
36
|
},
|
|
29
|
-
"
|
|
30
|
-
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "vite build"
|
|
39
|
+
}
|
|
40
|
+
}
|