@opentiny/tiny-engine-plugin-bridge 2.2.0 → 2.3.0

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 CHANGED
@@ -1,10 +1,10 @@
1
1
  import "./style.css";
2
- import { reactive as z, ref as N, watchEffect as Z, resolveComponent as i, openBlock as f, createElementBlock as L, createElementVNode as v, createVNode as s, withCtx as l, Fragment as te, renderList as ne, normalizeClass as oe, withModifiers as K, toDisplayString as U, computed as C, watch as ae, onMounted as se, createBlock as E, createTextVNode as w, createCommentVNode as T, nextTick as re } from "vue";
3
- import { SearchEmpty as le, SvgButton as j, PluginSetting as ce, VueMonaco as ie, ButtonGroup as de, PluginPanel as pe } from "@opentiny/tiny-engine-common";
2
+ import { reactive as z, ref as N, watchEffect as Z, resolveComponent as i, createElementBlock as L, openBlock as f, createElementVNode as v, createVNode as s, withCtx as l, Fragment as te, renderList as ne, withModifiers as K, normalizeClass as oe, toDisplayString as U, computed as C, watch as ae, onMounted as se, createBlock as E, createCommentVNode as T, createTextVNode as w, nextTick as re } from "vue";
3
+ import { SvgButton as j, SearchEmpty as le, ButtonGroup as ce, VueMonaco as ie, PluginSetting as de, PluginPanel as pe } from "@opentiny/tiny-engine-common";
4
4
  import { getMetaApi as b, META_SERVICE as S, useResource as B, useNotify as k, useModal as ue, getMergeMeta as me } from "@opentiny/tiny-engine-meta-register";
5
5
  import { isVsCodeEnv as ge } from "@opentiny/tiny-engine-common/js/environments";
6
6
  import { generateBridge as ye, generateUtil as _e } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
7
- import { Search as fe, Form as ve, Input as he, Button as Ee, FormItem as Re, Checkbox as Ce, RadioGroup as Ve, Radio as be } from "@opentiny/vue";
7
+ import { Search as fe, Radio as ve, RadioGroup as he, Checkbox as Ee, FormItem as Re, Button as Ce, Input as Ve, Form as be } from "@opentiny/vue";
8
8
  import { iconSearch as Se } from "@opentiny/vue-icon";
9
9
  const xe = (n, t) => b(S.Http).get(`/app-center/api/apps/extension/list?app=${n}&category=${t}`), Te = (n) => b(S.Http).post("/app-center/api/apps/extension/create", n), ke = (n) => b(S.Http).post("/app-center/api/apps/extension/update", n), Ne = (n) => b(S.Http).get(`/app-center/api/apps/extension/delete?${n}`), Ue = (n) => {
10
10
  b(S.Http).get(`/app-center/api/apps/schema/${n}`).then((t) => {
@@ -47,7 +47,6 @@ const xe = (n, t) => b(S.Http).get(`/app-center/api/apps/extension/list?app=${n}
47
47
  [V.Util]: "新建工具类",
48
48
  [V.Bridge]: "新建桥接源"
49
49
  }, I = {
50
- Read: "read",
51
50
  Edit: "edit"
52
51
  }, D = () => b(S.GlobalService).getBaseInfo().id, Oe = (n) => u.resourceNames[n], we = (n, t) => {
53
52
  u.resourceNames[n] = t;
@@ -210,23 +209,23 @@ function ze(n, t, m, e, o, y) {
210
209
  ])
211
210
  ]);
212
211
  }
213
- const je = /* @__PURE__ */ J(De, [["render", ze], ["__scopeId", "data-v-6480187c"]]), W = N(!1), Je = () => {
212
+ const je = /* @__PURE__ */ J(De, [["render", ze], ["__scopeId", "data-v-3a53f0e5"]]), W = N(!1), Je = () => {
214
213
  W.value = !0, re(() => window.dispatchEvent(new Event("resize")));
215
214
  }, P = () => {
216
215
  W.value = !1;
217
216
  }, We = {
218
217
  components: {
219
- TinyForm: ve,
220
- TinyInput: he,
221
- TinyButton: Ee,
218
+ TinyForm: be,
219
+ TinyInput: Ve,
220
+ TinyButton: Ce,
222
221
  TinyFormItem: Re,
223
- TinyCheckbox: Ce,
224
- PluginSetting: ce,
222
+ TinyCheckbox: Ee,
223
+ PluginSetting: de,
225
224
  MonacoEditor: ie,
226
- TinyRadioGroup: Ve,
227
- TinyRadio: be,
225
+ TinyRadioGroup: he,
226
+ TinyRadio: ve,
228
227
  SvgButton: j,
229
- ButtonGroup: de
228
+ ButtonGroup: ce
230
229
  },
231
230
  setup(n, { emit: t }) {
232
231
  const m = {
@@ -557,7 +556,7 @@ function $e(n, t, m, e, o, y) {
557
556
  _: 1
558
557
  })) : T("", !0);
559
558
  }
560
- const et = /* @__PURE__ */ J(We, [["render", $e], ["__scopeId", "data-v-40ef39ca"]]), tt = {
559
+ const et = /* @__PURE__ */ J(We, [["render", $e], ["__scopeId", "data-v-080f54ec"]]), tt = {
561
560
  components: {
562
561
  PluginPanel: pe,
563
562
  SvgButton: j,
@@ -588,6 +587,7 @@ function nt(n, t, m, e, o, y) {
588
587
  const c = i("svg-button"), _ = i("bridge-manage"), R = i("bridge-setting"), h = i("plugin-panel");
589
588
  return f(), E(h, {
590
589
  title: "资源管理",
590
+ class: "bridge-manage",
591
591
  isCloseLeft: !1,
592
592
  onClose: e.closePanel
593
593
  }, {
@@ -610,7 +610,7 @@ function nt(n, t, m, e, o, y) {
610
610
  _: 1
611
611
  }, 8, ["onClose"]);
612
612
  }
613
- const ot = /* @__PURE__ */ J(tt, [["render", nt], ["__scopeId", "data-v-1787cb11"]]), at = {
613
+ const ot = /* @__PURE__ */ J(tt, [["render", nt], ["__scopeId", "data-v-751d1a2d"]]), at = {
614
614
  id: "engine.plugins.bridge",
615
615
  title: "资源管理",
616
616
  type: "plugins",
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .manage-panel[data-v-6480187c]{height:100%;display:flex;flex-direction:column;position:relative}.manage-panel .manage-panel-search[data-v-6480187c]{padding:0 12px 12px}.manage-panel .add-button[data-v-6480187c]{align-self:flex-end;margin:6px}.manage-panel .list[data-v-6480187c]{flex:1;border-top:1px solid var(--ti-lowcode-tabs-border-color);overflow:auto;padding:12px 0}.manage-panel .list-item[data-v-6480187c]{height:24px;line-height:24px;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-6480187c]:hover,.manage-panel .list-item.active[data-v-6480187c]{background:var(--ti-lowcode-bridge-list-bg)}.manage-panel .list-item:hover .setting-icon[data-v-6480187c],.manage-panel .list-item.active .setting-icon[data-v-6480187c]{display:grid}.manage-panel .list-item .setting-icon[data-v-6480187c]{display:none}.manage-panel .list-item .list-item-icon[data-v-6480187c]{color:var(--te-common-icon-secondary);margin-right:8px}.plugin-setting[data-v-40ef39ca] .icon-wrap{margin-right:8px}.plugin-setting .resource-form .tip[data-v-40ef39ca]{font-size:11px;line-height:18px;margin-top:8px;color:var(--ti-lowcode-datasource-tip-color)}.plugin-setting .resource-form[data-v-40ef39ca] .tiny-form-item__label .cdn-tips-icon{margin-left:4px}.plugin-setting .title-wrap[data-v-40ef39ca]{font-size:12px;font-weight:700;color:var(--te-common-text-primary)}.plugin-setting .title-wrap .help-link[data-v-40ef39ca]{display:inline-block;color:var(--ti-lowcode-common-primary-color);font-size:12px;margin-left:16px}.plugin-setting .title-wrap .help-link[data-v-40ef39ca]:hover{text-decoration:underline}.plugin-setting .header-wrap[data-v-40ef39ca]{display:flex;align-items:center;column-gap:6px}.plugin-setting .header-wrap .tiny-button[data-v-40ef39ca]{width:40px;padding:0;min-width:40px;margin-right:2px}.plugin-setting .monaco-editor[data-v-40ef39ca]{height:500px;margin-top:8px;border:1px solid var(--ti-lowcode-birdge-editor-border-color)}.plugin-setting .resource-form-footer[data-v-40ef39ca]{padding:12px 0 12px 80px}.plugin-setting .resource-form-footer .tiny-svg[data-v-40ef39ca]{margin-right:6px}.plugin-setting .resource-form-footer .del[data-v-40ef39ca]:hover{background-color:var(--ti-lowcode-delete-button-hover-bg)}.plugin-setting .cdn-label-wrap[data-v-40ef39ca]{display:flex;align-items:center}.code-preview[data-v-40ef39ca]{font-size:12px;line-height:20px;background:var(--te-common-bg-container);color:var(--te-common-text-weaken);border-radius:4px}.code-preview .pre-title[data-v-40ef39ca]{font-family:Microsoft YaHei}.code-preview>pre[data-v-40ef39ca]{margin:0;padding:8px 20px;font-family:Consolas,Courier New,monospace}[data-v-1787cb11] .tiny-button{border-radius:4px;height:24px;line-height:24px}
1
+ .manage-panel[data-v-3a53f0e5]{height:100%;display:flex;flex-direction:column;position:relative}.manage-panel .manage-panel-search[data-v-3a53f0e5]{padding:0 12px 12px}.manage-panel .add-button[data-v-3a53f0e5]{align-self:flex-end;margin:6px}.manage-panel .list[data-v-3a53f0e5]{flex:1;border-top:1px solid var(--te-bridge-list-border-color);overflow:auto;padding:12px 0}.manage-panel .list-item[data-v-3a53f0e5]{height:24px;line-height:24px;display:grid;grid-template-columns:16px 1fr auto;column-gap:8px;align-items:center;padding:0 12px;position:relative;color:var(--te-bridge-list-text-color);cursor:pointer;font-size:12px}.manage-panel .list-item[data-v-3a53f0e5]:hover,.manage-panel .list-item.active[data-v-3a53f0e5]{background:var(--te-bridge-list-bg-color)}.manage-panel .list-item:hover .setting-icon[data-v-3a53f0e5],.manage-panel .list-item.active .setting-icon[data-v-3a53f0e5]{display:grid}.manage-panel .list-item .setting-icon[data-v-3a53f0e5]{display:none}.manage-panel .list-item .list-item-icon[data-v-3a53f0e5]{color:var(--te-bridge-list-icon-color);margin-right:8px}.plugin-setting[data-v-080f54ec] .icon-wrap{margin-right:8px}.plugin-setting .resource-form .tip[data-v-080f54ec]{font-size:11px;line-height:18px;margin-top:8px;color:var(--te-bridge-setting-tip-text-color)}.plugin-setting .resource-form[data-v-080f54ec] .tiny-form-item__label .cdn-tips-icon{margin-left:4px}.plugin-setting .title-wrap[data-v-080f54ec]{font-size:12px;font-weight:700;color:var(--te-bridge-setting-title-text-color)}.plugin-setting .title-wrap .help-link[data-v-080f54ec]{display:inline-block;color:var(--te-bridge-setting-link-text-color);font-size:12px;margin-left:16px}.plugin-setting .title-wrap .help-link[data-v-080f54ec]:hover{text-decoration:underline}.plugin-setting .header-wrap[data-v-080f54ec]{display:flex;align-items:center;column-gap:6px}.plugin-setting .header-wrap .tiny-button[data-v-080f54ec]{width:40px;padding:0;min-width:40px;margin-right:2px}.plugin-setting .monaco-editor[data-v-080f54ec]{height:500px;margin-top:8px;border:1px solid var(--te-bridge-editor-border-color)}.plugin-setting .cdn-label-wrap[data-v-080f54ec]{display:flex;align-items:center}.code-preview[data-v-080f54ec]{font-size:12px;line-height:20px;background:var(--te-bridge-setting-code-bg-color);color:var(--te-bridge-setting-code-text-color);border-radius:4px}.code-preview .pre-title[data-v-080f54ec]{font-family:Microsoft YaHei}.code-preview>pre[data-v-080f54ec]{margin:0;padding:8px 20px;font-family:Consolas,Courier New,monospace}[data-v-751d1a2d] .tiny-button{border-radius:4px;height:24px;line-height:24px}.bridge-manage{--te-bridge-list-text-color: var(--te-common-text-primary);--te-bridge-list-bg-color: var(--te-common-bg-container);--te-bridge-list-icon-color: var(--te-common-icon-secondary);--te-bridge-list-border-color: var(--te-common-border-default);--te-bridge-editor-border-color: var(--te-common-border-divider);--te-bridge-setting-tip-text-color: var(--te-common-text-weaken);--te-bridge-setting-title-text-color: var(--te-common-text-primary);--te-bridge-setting-link-text-color: var(--te-common-text-link);--te-bridge-setting-code-text-color: var(--te-common-text-weaken);--te-bridge-setting-code-bg-color: var(--te-common-bg-container)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-plugin-bridge",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,19 +25,19 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-common": "2.2.0",
29
- "@opentiny/tiny-engine-meta-register": "2.2.0"
28
+ "@opentiny/tiny-engine-common": "2.3.0",
29
+ "@opentiny/tiny-engine-meta-register": "2.3.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.2.0",
32
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.3.0",
33
33
  "@vitejs/plugin-vue": "^5.1.2",
34
34
  "@vitejs/plugin-vue-jsx": "^4.0.1",
35
35
  "vite": "^5.4.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "@opentiny/vue": "^3.14.0",
39
- "@opentiny/vue-icon": "^3.14.0",
38
+ "@opentiny/vue": "^3.20.0",
39
+ "@opentiny/vue-icon": "^3.20.0",
40
40
  "vue": "^3.4.15"
41
41
  },
42
- "gitHead": "34525174aa47280dda7d42d8835ebe235e169ed6"
42
+ "gitHead": "330c4d2b319d5b5ba6ad64c270c21a7931a2e400"
43
43
  }