@opentiny/tiny-engine-plugin-page 2.2.0 → 2.2.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 +27 -30
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { ref as K, watchEffect as Pe, resolveComponent as f,
|
|
3
|
-
import { getMetaApi as q, META_SERVICE as j, usePage as ee, useBlock as it, useModal as se, getMergeMeta as Ae, useNotify as G, useCanvas as re, getMergeRegistry as We, useLayout as De, useMessage as he, useHelp as gt,
|
|
4
|
-
import { BlockHistoryList as pt, MetaCodeEditor as mt,
|
|
2
|
+
import { ref as K, watchEffect as Pe, resolveComponent as f, createBlock as A, openBlock as v, computed as $, createElementBlock as M, createVNode as p, createElementVNode as R, withCtx as S, reactive as le, createCommentVNode as L, resolveDynamicComponent as Ke, createTextVNode as de, Fragment as oe, renderList as ve, normalizeClass as be, renderSlot as st, toDisplayString as ue, onMounted as rt, onUnmounted as Ge, provide as lt, inject as ct } from "vue";
|
|
3
|
+
import { getMetaApi as q, META_SERVICE as j, usePage as ee, useBlock as it, useModal as se, getMergeMeta as Ae, useNotify as G, useCanvas as re, getMergeRegistry as We, useLayout as De, useMessage as he, useHelp as gt, useBreadcrumb as dt, getOptions as Me, HOOK_NAME as ut } from "@opentiny/tiny-engine-meta-register";
|
|
4
|
+
import { BlockHistoryList as pt, MetaCodeEditor as mt, ButtonGroup as Xe, SvgButton as Ce, PluginSetting as ze, LifeCycles as ft, PluginPanel as Pt } from "@opentiny/tiny-engine-common";
|
|
5
5
|
import { isEqual as pe, extend as me } from "@opentiny/vue-renderless/common/object";
|
|
6
|
-
import { Checkbox as we,
|
|
6
|
+
import { Checkbox as we, CollapseItem as ke, Collapse as Te, Button as Qe, Input as Ye, Popover as yt, Search as _t, Radio as Dt, Select as ht, FormItem as St, Form as vt } from "@opentiny/vue";
|
|
7
7
|
import { constants as Fe } from "@opentiny/tiny-engine-utils";
|
|
8
8
|
import { isVsCodeEnv as Ze } from "@opentiny/tiny-engine-common/js/environments";
|
|
9
9
|
import { handlePageUpdate as $e } from "@opentiny/tiny-engine-common/js/http";
|
|
10
10
|
import { generatePage as bt, generateRouter as Ct } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
|
|
11
11
|
import { previewPage as Nt } from "@opentiny/tiny-engine-common/js/preview";
|
|
12
12
|
import It from "@opentiny/vue-renderless/common/deps/throttle";
|
|
13
|
-
import { IconSearch as wt,
|
|
13
|
+
import { IconSearch as wt, IconFolderClosed as kt, IconFolderOpened as Tt } from "@opentiny/vue-icon";
|
|
14
14
|
import { getCanvasStatus as et } from "@opentiny/tiny-engine-common/js/canvas";
|
|
15
|
-
import {
|
|
15
|
+
import { REGEXP_ROUTE as He, REGEXP_FOLDER_NAME as Ft, REGEXP_PAGE_NAME as Ot } from "@opentiny/tiny-engine-common/js/verification";
|
|
16
16
|
const Et = (t) => q(j.Http).get(`/app-center/api/pages/list/${t}`), Oe = (t) => q(j.Http).get(`/app-center/api/pages/detail/${t}`), xt = (t) => q(j.Http).get(`/app-center/api/pages/delete/${t}`), Rt = (t) => q(j.Http).post("/app-center/api/pages/create", t), Vt = (t, a) => q(j.Http).post(`/app-center/api/pages/update/${t}`, a), Bt = (t) => q(j.Http).post("/app-center/api/pages/copy", t), tt = (t) => q(j.Http).get(`/app-center/api/pages/histories?page=${t}`), Gt = (t) => q(j.Http).post("/app-center/api/pageHistory/restore", t), At = (t) => q(j.Http).get(`/app-center/api/pages/histories/${t}`), Mt = (t, a) => q(j.Http).post(`/app-center/api/pages/update/${t}`, a), ce = {
|
|
17
17
|
fetchPageList: Et,
|
|
18
18
|
fetchPageDetail: Oe,
|
|
@@ -202,14 +202,14 @@ const Kt = /* @__PURE__ */ te(qt, [["render", Jt], ["__scopeId", "data-v-b78f330
|
|
|
202
202
|
}, Xt = {
|
|
203
203
|
components: {
|
|
204
204
|
TinyButton: Qe,
|
|
205
|
-
TinyCollapse:
|
|
206
|
-
TinyCollapseItem:
|
|
205
|
+
TinyCollapse: Te,
|
|
206
|
+
TinyCollapseItem: ke,
|
|
207
207
|
PageInputOutput: Kt,
|
|
208
208
|
LifeCycles: ft,
|
|
209
209
|
PageHistory: Lt,
|
|
210
|
-
PluginSetting:
|
|
210
|
+
PluginSetting: ze,
|
|
211
211
|
SvgButton: Ce,
|
|
212
|
-
ButtonGroup:
|
|
212
|
+
ButtonGroup: Xe
|
|
213
213
|
},
|
|
214
214
|
props: {
|
|
215
215
|
isFolder: {
|
|
@@ -530,11 +530,11 @@ const Le = () => {
|
|
|
530
530
|
}, $t = {
|
|
531
531
|
components: {
|
|
532
532
|
TinyButton: Qe,
|
|
533
|
-
TinyCollapse:
|
|
534
|
-
TinyCollapseItem:
|
|
535
|
-
PluginSetting:
|
|
533
|
+
TinyCollapse: Te,
|
|
534
|
+
TinyCollapseItem: ke,
|
|
535
|
+
PluginSetting: ze,
|
|
536
536
|
SvgButton: Ce,
|
|
537
|
-
ButtonGroup:
|
|
537
|
+
ButtonGroup: Xe
|
|
538
538
|
},
|
|
539
539
|
props: {
|
|
540
540
|
isFolder: {
|
|
@@ -814,10 +814,7 @@ const aa = /* @__PURE__ */ te($t, [["render", ta], ["__scopeId", "data-v-b0cf4b3
|
|
|
814
814
|
}), P = {
|
|
815
815
|
node: 1,
|
|
816
816
|
// └
|
|
817
|
-
layer: 2
|
|
818
|
-
// │
|
|
819
|
-
layerNode: 3
|
|
820
|
-
// ├
|
|
817
|
+
layer: 2
|
|
821
818
|
}, _ = $(() => {
|
|
822
819
|
const i = {}, D = u.value;
|
|
823
820
|
for (const [k, N] of D.entries())
|
|
@@ -902,11 +899,11 @@ const aa = /* @__PURE__ */ te($t, [["render", ta], ["__scopeId", "data-v-b0cf4b3
|
|
|
902
899
|
PAGE_STATUS: pa
|
|
903
900
|
} = Fe, ma = {
|
|
904
901
|
components: {
|
|
905
|
-
TinySearch:
|
|
906
|
-
TinyCollapse:
|
|
907
|
-
TinyCollapseItem:
|
|
902
|
+
TinySearch: _t,
|
|
903
|
+
TinyCollapse: Te,
|
|
904
|
+
TinyCollapseItem: ke,
|
|
908
905
|
TinyIconSearch: wt(),
|
|
909
|
-
TinyPopover:
|
|
906
|
+
TinyPopover: yt,
|
|
910
907
|
DraggableTree: ua,
|
|
911
908
|
SvgButton: Ce
|
|
912
909
|
},
|
|
@@ -1109,8 +1106,8 @@ const aa = /* @__PURE__ */ te($t, [["render", ta], ["__scopeId", "data-v-b0cf4b3
|
|
|
1109
1106
|
switchPage: D,
|
|
1110
1107
|
pageSettingState: r,
|
|
1111
1108
|
setPopoverRef: V,
|
|
1112
|
-
IconFolderOpened:
|
|
1113
|
-
IconFolderClosed:
|
|
1109
|
+
IconFolderOpened: Tt(),
|
|
1110
|
+
IconFolderClosed: kt(),
|
|
1114
1111
|
getRowOperations: T,
|
|
1115
1112
|
handleClickRow: ie,
|
|
1116
1113
|
handleMoveNode: H,
|
|
@@ -1641,12 +1638,12 @@ function Ya(t, a, n, e, o, s) {
|
|
|
1641
1638
|
}
|
|
1642
1639
|
const Za = /* @__PURE__ */ te(Wa, [["render", Ya], ["__scopeId", "data-v-dc244104"]]), $a = {
|
|
1643
1640
|
components: {
|
|
1644
|
-
TinyForm:
|
|
1645
|
-
TinyFormItem:
|
|
1641
|
+
TinyForm: vt,
|
|
1642
|
+
TinyFormItem: St,
|
|
1646
1643
|
TinyInput: Ye,
|
|
1647
|
-
TinySelect:
|
|
1644
|
+
TinySelect: ht,
|
|
1648
1645
|
PageHome: Za,
|
|
1649
|
-
TinyRadio:
|
|
1646
|
+
TinyRadio: Dt,
|
|
1650
1647
|
TinyCheckbox: we
|
|
1651
1648
|
},
|
|
1652
1649
|
props: {
|
|
@@ -1689,7 +1686,7 @@ const Za = /* @__PURE__ */ te(Wa, [["render", Ya], ["__scopeId", "data-v-dc24410
|
|
|
1689
1686
|
required: !0,
|
|
1690
1687
|
message: "请输入页面 ID"
|
|
1691
1688
|
}, {
|
|
1692
|
-
pattern:
|
|
1689
|
+
pattern: Ot,
|
|
1693
1690
|
message: "只允许包含英文字母,且为大写开头驼峰格式, 如DemoPage"
|
|
1694
1691
|
}, {
|
|
1695
1692
|
min: 3,
|
|
@@ -1708,7 +1705,7 @@ const Za = /* @__PURE__ */ te(Wa, [["render", Ya], ["__scopeId", "data-v-dc24410
|
|
|
1708
1705
|
required: !0,
|
|
1709
1706
|
message: "请输入页面文件夹 ID"
|
|
1710
1707
|
}, {
|
|
1711
|
-
pattern:
|
|
1708
|
+
pattern: Ft,
|
|
1712
1709
|
message: "只允许包含英文字母、数字、下横线_、中横线-, 且以英文字母开头"
|
|
1713
1710
|
}, {
|
|
1714
1711
|
min: 3,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-engine-plugin-page",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"homepage": "https://opentiny.design/tiny-engine",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@opentiny/tiny-engine-common": "2.2.
|
|
28
|
+
"@opentiny/tiny-engine-common": "2.2.1",
|
|
29
29
|
"@opentiny/tiny-engine-meta-register": "2.2.0",
|
|
30
30
|
"@opentiny/tiny-engine-utils": "2.2.0"
|
|
31
31
|
},
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"@opentiny/vue-renderless": "^3.14.0",
|
|
42
42
|
"vue": "^3.4.15"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "589fcf9717f4ba565ded2f2eb520d5066a53ab64"
|
|
45
45
|
}
|