@opentiny/tiny-engine-plugin-page 1.0.3 → 1.0.4-alpha.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 +55 -55
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -5,24 +5,24 @@ import { SvgButton as ie, BlockHistoryList as Ze, MetaCodeEditor as $e, LifeCycl
|
|
|
5
5
|
import { isEqual as Pe, extend as le } from "@opentiny/vue-renderless/common/object";
|
|
6
6
|
import { Checkbox as nt, Form as Ve, FormItem as Ee, Input as Re, Select as ot, Radio as st, Switch as rt, Alert as lt, Button as Ge, Collapse as ye, CollapseItem as he, Search as ct, Tree as it } from "@opentiny/vue";
|
|
7
7
|
import { constants as Ae } from "@opentiny/tiny-engine-utils";
|
|
8
|
-
import { isVsCodeEnv as Ue } from "@opentiny/tiny-engine-
|
|
9
|
-
import { handlePageUpdate as pt } from "@opentiny/tiny-engine-
|
|
10
|
-
import { generateRouter as gt, generatePage as dt } from "@opentiny/tiny-engine-
|
|
11
|
-
import { REGEXP_PAGE_NAME as ut, REGEXP_ROUTE as Te, REGEXP_FOLDER_NAME as _t } from "@opentiny/tiny-engine-
|
|
8
|
+
import { isVsCodeEnv as Ue } from "@opentiny/tiny-engine-controller/js/environments";
|
|
9
|
+
import { handlePageUpdate as pt } from "@opentiny/tiny-engine-controller/js/http";
|
|
10
|
+
import { generateRouter as gt, generatePage as dt } from "@opentiny/tiny-engine-controller/js/vscodeGenerateFile";
|
|
11
|
+
import { REGEXP_PAGE_NAME as ut, REGEXP_ROUTE as Te, REGEXP_FOLDER_NAME as _t } from "@opentiny/tiny-engine-controller/js/verification";
|
|
12
12
|
import { useHttp as mt } from "@opentiny/tiny-engine-http";
|
|
13
|
-
import { previewPage as ft } from "@opentiny/tiny-engine-
|
|
13
|
+
import { previewPage as ft } from "@opentiny/tiny-engine-controller/js/preview";
|
|
14
14
|
import Pt from "@opentiny/vue-renderless/common/deps/throttle";
|
|
15
15
|
import { IconFolderOpened as yt, IconFolderClosed as ht } from "@opentiny/vue-icon";
|
|
16
|
-
import { getCanvasStatus as we } from "@opentiny/tiny-engine-
|
|
17
|
-
const L = mt(), St = (t) => L.get(`/app-center/api/pages/list/${t}`), Se = (t) => L.get(`/app-center/api/pages/detail/${t}`), Dt = (t) => L.get(`/app-center/api/pages/delete/${t}`), vt = (t) => L.post("/app-center/api/pages/create", t),
|
|
16
|
+
import { getCanvasStatus as we } from "@opentiny/tiny-engine-controller/js/canvas";
|
|
17
|
+
const L = mt(), St = (t) => L.get(`/app-center/api/pages/list/${t}`), Se = (t) => L.get(`/app-center/api/pages/detail/${t}`), Dt = (t) => L.get(`/app-center/api/pages/delete/${t}`), vt = (t) => L.post("/app-center/api/pages/create", t), Ct = (t, o) => L.post(`/app-center/api/pages/update/${t}`, o), bt = (t) => L.post("/app-center/api/pages/copy", t), He = (t) => L.get(`/app-center/api/pages/histories?page=${t}`), It = (t) => L.post("/app-center/api/pageHistory/restore", t), Nt = (t) => L.get(`/app-center/api/pages/histories/${t}`), Tt = (t, o) => L.post(`/app-center/api/pages/update/${t}`, o), pe = {
|
|
18
18
|
fetchPageList: St,
|
|
19
19
|
fetchPageDetail: Se,
|
|
20
20
|
requestDeletePage: Dt,
|
|
21
21
|
requestCreatePage: vt,
|
|
22
|
-
requestCopyPage:
|
|
22
|
+
requestCopyPage: bt,
|
|
23
23
|
fetchPageHistory: He,
|
|
24
24
|
fetchHistoryDetail: Nt,
|
|
25
|
-
handleRouteHomeUpdate:
|
|
25
|
+
handleRouteHomeUpdate: Ct,
|
|
26
26
|
requestRestorePageHistory: It,
|
|
27
27
|
requestUpdatePage: Tt
|
|
28
28
|
};
|
|
@@ -80,7 +80,7 @@ const K = (t, o) => {
|
|
|
80
80
|
state: y
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
}, Me = (t) => (_e("data-v-
|
|
83
|
+
}, Me = (t) => (_e("data-v-665cee95"), t = t(), me(), t), Ft = { class: "home" }, Ot = { style: { display: "flex" } }, kt = /* @__PURE__ */ Me(() => /* @__PURE__ */ R("div", { class: "homeTitle" }, "主页设置", -1)), xt = { class: "tip" }, Vt = /* @__PURE__ */ Me(() => /* @__PURE__ */ R("span", null, "当前主页是", -1)), Et = { class: "home-page" };
|
|
84
84
|
function Rt(t, o, c, e, y, S) {
|
|
85
85
|
const a = l("tiny-checkbox");
|
|
86
86
|
return T(), X("div", Ft, [
|
|
@@ -105,7 +105,7 @@ function Rt(t, o, c, e, y, S) {
|
|
|
105
105
|
])
|
|
106
106
|
]);
|
|
107
107
|
}
|
|
108
|
-
const Gt = /* @__PURE__ */ K(wt, [["render", Rt], ["__scopeId", "data-v-
|
|
108
|
+
const Gt = /* @__PURE__ */ K(wt, [["render", Rt], ["__scopeId", "data-v-665cee95"]]), At = {
|
|
109
109
|
components: {
|
|
110
110
|
SvgButton: ie,
|
|
111
111
|
TinyForm: Ve,
|
|
@@ -237,7 +237,7 @@ const Gt = /* @__PURE__ */ K(wt, [["render", Rt], ["__scopeId", "data-v-7ceaab89
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
const Le = (t) => (_e("data-v-
|
|
240
|
+
const Le = (t) => (_e("data-v-670ad0dd"), t = t(), me(), t), Ut = { class: "general-config" }, Ht = /* @__PURE__ */ Le(() => /* @__PURE__ */ R("span", { class: "input-head" }, "website.com", -1)), Mt = { class: "tip" }, Lt = {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "text"
|
|
243
243
|
}, Bt = {
|
|
@@ -245,7 +245,7 @@ const Le = (t) => (_e("data-v-b4c4e258"), t = t(), me(), t), Ut = { class: "gene
|
|
|
245
245
|
class: "route-text"
|
|
246
246
|
}, qt = /* @__PURE__ */ Le(() => /* @__PURE__ */ R("span", { class: "text" }, "website.com/", -1)), jt = { class: "text-dim" };
|
|
247
247
|
function Jt(t, o, c, e, y, S) {
|
|
248
|
-
const a = l("tiny-radio"), i = l("tiny-form-item"), n = l("tiny-input"), d = l("tiny-select"), r = l("svg-button"), h = l("tiny-form"),
|
|
248
|
+
const a = l("tiny-radio"), i = l("tiny-form-item"), n = l("tiny-input"), d = l("tiny-select"), r = l("svg-button"), h = l("tiny-form"), b = l("page-home");
|
|
249
249
|
return T(), X("div", Ut, [
|
|
250
250
|
s(h, {
|
|
251
251
|
ref: "generalForm",
|
|
@@ -355,10 +355,10 @@ function Jt(t, o, c, e, y, S) {
|
|
|
355
355
|
]),
|
|
356
356
|
_: 1
|
|
357
357
|
}, 8, ["model", "rules"]),
|
|
358
|
-
!c.isFolder && !e.pageSettingState.isNew && e.pageSettingState.currentPageData.group !== "public" ? (T(), G(
|
|
358
|
+
!c.isFolder && !e.pageSettingState.isNew && e.pageSettingState.currentPageData.group !== "public" ? (T(), G(b, { key: 0 })) : H("", !0)
|
|
359
359
|
]);
|
|
360
360
|
}
|
|
361
|
-
const Be = /* @__PURE__ */ K(At, [["render", Jt], ["__scopeId", "data-v-
|
|
361
|
+
const Be = /* @__PURE__ */ K(At, [["render", Jt], ["__scopeId", "data-v-670ad0dd"]]), Xt = {
|
|
362
362
|
components: {
|
|
363
363
|
BlockHistoryList: Ze
|
|
364
364
|
},
|
|
@@ -371,8 +371,8 @@ const Be = /* @__PURE__ */ K(At, [["render", Jt], ["__scopeId", "data-v-b4c4e258
|
|
|
371
371
|
emits: ["restorePage"],
|
|
372
372
|
setup(t, { emit: o }) {
|
|
373
373
|
const { pageSettingState: c } = M(), { getDateFromNow: e } = Ke(), { confirm: y } = W(), S = A([]), a = (d) => {
|
|
374
|
-
const { id: r, version: h } = We().useInfo(),
|
|
375
|
-
d ? He(d +
|
|
374
|
+
const { id: r, version: h } = We().useInfo(), b = h ? `&app=${r}&version=${h}` : "";
|
|
375
|
+
d ? He(d + b).then((g) => {
|
|
376
376
|
g.forEach((P) => {
|
|
377
377
|
P.backupTitle = P.message, P.backupTime = e(new Date(P.time));
|
|
378
378
|
}), S.value = g.reverse();
|
|
@@ -577,7 +577,7 @@ const ea = /* @__PURE__ */ K(zt, [["render", $t], ["__scopeId", "data-v-92b58692
|
|
|
577
577
|
isTemporaryPage: r,
|
|
578
578
|
STATIC_PAGE_GROUP_ID: h
|
|
579
579
|
} = M(), {
|
|
580
|
-
pageState:
|
|
580
|
+
pageState: b,
|
|
581
581
|
initData: g
|
|
582
582
|
} = fe(), {
|
|
583
583
|
confirm: P
|
|
@@ -598,14 +598,14 @@ const ea = /* @__PURE__ */ K(zt, [["render", $t], ["__scopeId", "data-v-92b58692
|
|
|
598
598
|
page_content: v,
|
|
599
599
|
...D
|
|
600
600
|
} = S, {
|
|
601
|
-
page_content:
|
|
601
|
+
page_content: C,
|
|
602
602
|
...F
|
|
603
603
|
} = a.currentPageData, k = {
|
|
604
604
|
...D,
|
|
605
605
|
...F,
|
|
606
606
|
page_content: {
|
|
607
607
|
...v,
|
|
608
|
-
...
|
|
608
|
+
...C,
|
|
609
609
|
fileName: a.currentPageData.name
|
|
610
610
|
},
|
|
611
611
|
app: y.selectedId,
|
|
@@ -624,28 +624,28 @@ const ea = /* @__PURE__ */ K(zt, [["render", $t], ["__scopeId", "data-v-92b58692
|
|
|
624
624
|
});
|
|
625
625
|
});
|
|
626
626
|
}, j = (v, D) => {
|
|
627
|
-
const
|
|
628
|
-
return pt(v, D,
|
|
627
|
+
const C = a.currentPageDataCopy.route !== a.currentPageData.route;
|
|
628
|
+
return pt(v, D, C);
|
|
629
629
|
}, J = (v) => {
|
|
630
630
|
v.id = v.page, ["page", "backupTime", "backupTitle", "time"].forEach((F) => delete v[F]);
|
|
631
|
-
const
|
|
631
|
+
const C = {
|
|
632
632
|
...a.currentPageData,
|
|
633
633
|
...v,
|
|
634
634
|
message: "还原页面"
|
|
635
635
|
};
|
|
636
|
-
j(v.id,
|
|
636
|
+
j(v.id, C).then((F) => {
|
|
637
637
|
var k;
|
|
638
|
-
((k =
|
|
638
|
+
((k = b == null ? void 0 : b.currentPage) == null ? void 0 : k.id) === (F == null ? void 0 : F.id) && g(F.page_content, F);
|
|
639
639
|
});
|
|
640
640
|
}, Q = async () => {
|
|
641
641
|
const {
|
|
642
642
|
id: v,
|
|
643
643
|
name: D,
|
|
644
|
-
page_content:
|
|
644
|
+
page_content: C
|
|
645
645
|
} = a.currentPageData, F = {
|
|
646
646
|
...a.currentPageData,
|
|
647
647
|
page_content: {
|
|
648
|
-
...
|
|
648
|
+
...C,
|
|
649
649
|
fileName: D
|
|
650
650
|
}
|
|
651
651
|
}, k = await j(v, F);
|
|
@@ -690,13 +690,13 @@ const ea = /* @__PURE__ */ K(zt, [["render", $t], ["__scopeId", "data-v-92b58692
|
|
|
690
690
|
if (!Array.isArray(v))
|
|
691
691
|
return [];
|
|
692
692
|
const D = [];
|
|
693
|
-
return v.forEach((
|
|
693
|
+
return v.forEach((C) => {
|
|
694
694
|
var F;
|
|
695
|
-
if (
|
|
696
|
-
D.push(
|
|
695
|
+
if (C != null && C.isPage) {
|
|
696
|
+
D.push(C);
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
|
-
!(
|
|
699
|
+
!(C != null && C.isPage) && ((F = C == null ? void 0 : C.children) != null && F.length) && D.push(...ne(C.children));
|
|
700
700
|
}), D;
|
|
701
701
|
};
|
|
702
702
|
return {
|
|
@@ -714,11 +714,11 @@ const ea = /* @__PURE__ */ K(zt, [["render", $t], ["__scopeId", "data-v-92b58692
|
|
|
714
714
|
var D;
|
|
715
715
|
const v = ((D = a.currentPageData) == null ? void 0 : D.id) || "";
|
|
716
716
|
e(v).then(() => {
|
|
717
|
-
a.updateTreeData().then((
|
|
717
|
+
a.updateTreeData().then((C) => {
|
|
718
718
|
var N, w;
|
|
719
|
-
if (((N =
|
|
719
|
+
if (((N = b == null ? void 0 : b.currentPage) == null ? void 0 : N.id) !== v)
|
|
720
720
|
return;
|
|
721
|
-
const F = ((w = (
|
|
721
|
+
const F = ((w = (C || []).find(({
|
|
722
722
|
groupId: O
|
|
723
723
|
}) => O === h)) == null ? void 0 : w.data) || [], k = ne(F), p = k.find((O) => O.isHome), u = k == null ? void 0 : k[0], I = {
|
|
724
724
|
componentName: ta.Page
|
|
@@ -747,7 +747,7 @@ const ea = /* @__PURE__ */ K(zt, [["render", $t], ["__scopeId", "data-v-92b58692
|
|
|
747
747
|
};
|
|
748
748
|
const na = { class: "page-setting-content" };
|
|
749
749
|
function oa(t, o, c, e, y, S) {
|
|
750
|
-
const a = l("tiny-button"), i = l("svg-button"), n = l("button-group"), d = l("page-general"), r = l("tiny-collapse-item"), h = l("page-input-output"),
|
|
750
|
+
const a = l("tiny-button"), i = l("svg-button"), n = l("button-group"), d = l("page-general"), r = l("tiny-collapse-item"), h = l("page-input-output"), b = l("life-cycles"), g = l("page-history"), P = l("tiny-collapse"), _ = l("plugin-setting");
|
|
751
751
|
return e.isShow ? (T(), G(_, {
|
|
752
752
|
key: 0,
|
|
753
753
|
title: e.state.title,
|
|
@@ -827,7 +827,7 @@ function oa(t, o, c, e, y, S) {
|
|
|
827
827
|
default: m(() => {
|
|
828
828
|
var f;
|
|
829
829
|
return [
|
|
830
|
-
s(
|
|
830
|
+
s(b, {
|
|
831
831
|
bindLifeCycles: (f = e.pageSettingState.currentPageData.page_content) == null ? void 0 : f.lifeCycles,
|
|
832
832
|
onUpdatePageLifeCycles: e.updatePageLifeCycles
|
|
833
833
|
}, null, 8, ["bindLifeCycles", "onUpdatePageLifeCycles"])
|
|
@@ -853,7 +853,7 @@ function oa(t, o, c, e, y, S) {
|
|
|
853
853
|
_: 1
|
|
854
854
|
}, 8, ["title"])) : H("", !0);
|
|
855
855
|
}
|
|
856
|
-
const sa = /* @__PURE__ */ K(aa, [["render", oa], ["__scopeId", "data-v-
|
|
856
|
+
const sa = /* @__PURE__ */ K(aa, [["render", oa], ["__scopeId", "data-v-cb88d05f"]]);
|
|
857
857
|
let ve = A(!1);
|
|
858
858
|
const Oe = () => {
|
|
859
859
|
ve.value = !0;
|
|
@@ -968,8 +968,8 @@ const Oe = () => {
|
|
|
968
968
|
}
|
|
969
969
|
}, la = { class: "page-setting-content" };
|
|
970
970
|
function ca(t, o, c, e, y, S) {
|
|
971
|
-
const a = l("tiny-button"), i = l("svg-button"), n = l("button-group"), d = l("page-general"), r = l("tiny-collapse-item"), h = l("tiny-collapse"),
|
|
972
|
-
return e.isShow ? (T(), G(
|
|
971
|
+
const a = l("tiny-button"), i = l("svg-button"), n = l("button-group"), d = l("page-general"), r = l("tiny-collapse-item"), h = l("tiny-collapse"), b = l("plugin-setting");
|
|
972
|
+
return e.isShow ? (T(), G(b, {
|
|
973
973
|
key: 0,
|
|
974
974
|
title: e.state.title,
|
|
975
975
|
class: "pageFolder-plugin-setting"
|
|
@@ -1064,7 +1064,7 @@ const ia = /* @__PURE__ */ K(ra, [["render", ca], ["__scopeId", "data-v-a2060cb5
|
|
|
1064
1064
|
changeTreeData: d,
|
|
1065
1065
|
isCurrentDataSame: r,
|
|
1066
1066
|
STATIC_PAGE_GROUP_ID: h,
|
|
1067
|
-
COMMON_PAGE_GROUP_ID:
|
|
1067
|
+
COMMON_PAGE_GROUP_ID: b
|
|
1068
1068
|
} = M(), {
|
|
1069
1069
|
fetchPageList: g,
|
|
1070
1070
|
fetchPageDetail: P
|
|
@@ -1072,7 +1072,7 @@ const ia = /* @__PURE__ */ K(ra, [["render", ca], ["__scopeId", "data-v-a2060cb5
|
|
|
1072
1072
|
setBreadcrumbPage: _
|
|
1073
1073
|
} = ze(), f = A([]), V = n.ROOT_ID, x = $({
|
|
1074
1074
|
pageSearchValue: "",
|
|
1075
|
-
collapseValue: [h,
|
|
1075
|
+
collapseValue: [h, b],
|
|
1076
1076
|
currentNodeData: {}
|
|
1077
1077
|
}), j = (p, u, I) => {
|
|
1078
1078
|
const N = {
|
|
@@ -1095,7 +1095,7 @@ const ia = /* @__PURE__ */ K(ra, [["render", ca], ["__scopeId", "data-v-a2060cb5
|
|
|
1095
1095
|
data: []
|
|
1096
1096
|
}, w = {
|
|
1097
1097
|
groupName: "公共页面",
|
|
1098
|
-
groupId:
|
|
1098
|
+
groupId: b,
|
|
1099
1099
|
data: []
|
|
1100
1100
|
};
|
|
1101
1101
|
I.forEach((B) => {
|
|
@@ -1103,17 +1103,17 @@ const ia = /* @__PURE__ */ K(ra, [["render", ca], ["__scopeId", "data-v-a2060cb5
|
|
|
1103
1103
|
...B,
|
|
1104
1104
|
name: B.folderName,
|
|
1105
1105
|
group: "staticPages"
|
|
1106
|
-
},
|
|
1106
|
+
}, be = B.meta ? {
|
|
1107
1107
|
...B,
|
|
1108
1108
|
...B.meta,
|
|
1109
1109
|
name: B.fileName,
|
|
1110
1110
|
isPage: !0,
|
|
1111
1111
|
isBody: B.meta.rootElement === pa.Body
|
|
1112
1112
|
} : qe, {
|
|
1113
|
-
children:
|
|
1113
|
+
children: Ca,
|
|
1114
1114
|
...Ie
|
|
1115
|
-
} =
|
|
1116
|
-
|
|
1115
|
+
} = be;
|
|
1116
|
+
be.group === "staticPages" ? N.data.push(Ie) : w.data.push(Ie);
|
|
1117
1117
|
});
|
|
1118
1118
|
const O = j([...N.data], "parentId", "id");
|
|
1119
1119
|
return N.data = O[V].children, n.pages = [N, w], n.pages;
|
|
@@ -1212,7 +1212,7 @@ const ia = /* @__PURE__ */ K(ra, [["render", ca], ["__scopeId", "data-v-a2060cb5
|
|
|
1212
1212
|
z(() => {
|
|
1213
1213
|
c.selectedId && J(c.selectedId);
|
|
1214
1214
|
});
|
|
1215
|
-
const
|
|
1215
|
+
const Ce = (p) => {
|
|
1216
1216
|
Array.isArray(f == null ? void 0 : f.value) && f.value.forEach((u) => {
|
|
1217
1217
|
u == null || u.filter(p);
|
|
1218
1218
|
});
|
|
@@ -1221,7 +1221,7 @@ const ia = /* @__PURE__ */ K(ra, [["render", ca], ["__scopeId", "data-v-a2060cb5
|
|
|
1221
1221
|
return p ? ((I = u.name) == null ? void 0 : I.toLowerCase().indexOf(p == null ? void 0 : p.toLowerCase())) !== -1 : !0;
|
|
1222
1222
|
}, D = (p) => {
|
|
1223
1223
|
p && f.value.push(p);
|
|
1224
|
-
},
|
|
1224
|
+
}, C = (p) => {
|
|
1225
1225
|
p.stopPropagation(), p.preventDefault(), o("add");
|
|
1226
1226
|
}, F = s(l("SvgIcon"), {
|
|
1227
1227
|
name: "text-page-folder-closed",
|
|
@@ -1231,11 +1231,11 @@ const ia = /* @__PURE__ */ K(ra, [["render", ca], ["__scopeId", "data-v-a2060cb5
|
|
|
1231
1231
|
class: "folder-icon"
|
|
1232
1232
|
}, null);
|
|
1233
1233
|
return {
|
|
1234
|
-
createPublicPage:
|
|
1234
|
+
createPublicPage: C,
|
|
1235
1235
|
state: x,
|
|
1236
1236
|
switchPage: Y,
|
|
1237
1237
|
pageSettingState: n,
|
|
1238
|
-
searchPageData:
|
|
1238
|
+
searchPageData: Ce,
|
|
1239
1239
|
renderContent: ne,
|
|
1240
1240
|
refreshPageList: J,
|
|
1241
1241
|
filterPageTreeData: v,
|
|
@@ -1303,7 +1303,7 @@ function Pa(t, o, c, e, y, S) {
|
|
|
1303
1303
|
}, 8, ["modelValue"])
|
|
1304
1304
|
], 64);
|
|
1305
1305
|
}
|
|
1306
|
-
const ya = /* @__PURE__ */ K(ua, [["render", Pa], ["__scopeId", "data-v-
|
|
1306
|
+
const ya = /* @__PURE__ */ K(ua, [["render", Pa], ["__scopeId", "data-v-17466f10"]]), ha = {
|
|
1307
1307
|
getPageById: async (t) => {
|
|
1308
1308
|
if (t)
|
|
1309
1309
|
return Se(t);
|
|
@@ -1349,7 +1349,7 @@ const ya = /* @__PURE__ */ K(ua, [["render", Pa], ["__scopeId", "data-v-47637497
|
|
|
1349
1349
|
},
|
|
1350
1350
|
group: f
|
|
1351
1351
|
}, c.currentPageDataCopy = le(!0, {}, c.currentPageData), r.isFolder = !1, se();
|
|
1352
|
-
},
|
|
1352
|
+
}, b = () => {
|
|
1353
1353
|
q(), c.isNew = !0, c.currentPageData = {
|
|
1354
1354
|
parentId: n,
|
|
1355
1355
|
route: "",
|
|
@@ -1380,7 +1380,7 @@ const ya = /* @__PURE__ */ K(ua, [["render", Pa], ["__scopeId", "data-v-47637497
|
|
|
1380
1380
|
q(), U();
|
|
1381
1381
|
},
|
|
1382
1382
|
openSettingPanel: g,
|
|
1383
|
-
createNewFolder:
|
|
1383
|
+
createNewFolder: b,
|
|
1384
1384
|
createNewPage: h,
|
|
1385
1385
|
docsUrl: d
|
|
1386
1386
|
};
|
|
@@ -1407,14 +1407,14 @@ function Da(t, o, c, e, y, S) {
|
|
|
1407
1407
|
name: "new-page",
|
|
1408
1408
|
placement: "bottom",
|
|
1409
1409
|
tips: "新建页面",
|
|
1410
|
-
onClick: o[0] || (o[0] = (
|
|
1410
|
+
onClick: o[0] || (o[0] = (b) => e.createNewPage("staticPages"))
|
|
1411
1411
|
})
|
|
1412
1412
|
]),
|
|
1413
1413
|
content: m(() => [
|
|
1414
1414
|
s(n, {
|
|
1415
1415
|
ref: "pageTreeRef",
|
|
1416
1416
|
isFolder: e.state.isFolder,
|
|
1417
|
-
onAdd: o[1] || (o[1] = (
|
|
1417
|
+
onAdd: o[1] || (o[1] = (b) => e.createNewPage("publicPages")),
|
|
1418
1418
|
onOpenSettingPanel: e.openSettingPanel
|
|
1419
1419
|
}, null, 8, ["isFolder", "onOpenSettingPanel"])
|
|
1420
1420
|
]),
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.home[data-v-
|
|
1
|
+
.home[data-v-665cee95]{color:var(--ti-lowcode-page-manage-text-color);padding:8px 12px;line-height:24px;margin:-27px 0 -25px 8px}.home .homeTitle[data-v-665cee95]{margin:10px 0 0 5px;display:inline-block}.home .selectHome[data-v-665cee95]{margin:10px 10px 10px 45px}.home .tip[data-v-665cee95]{color:var(--ti-lowcode-page-manage-btn-text-color);margin-top:10px;opacity:.6;font-size:14px}.home .tip span[data-v-665cee95]{margin-left:4px;color:var(--ti-lowcode-page-manage-btn-text-color)}.home .tip .home-page[data-v-665cee95]{display:inline-block;margin-bottom:10px}.home .tiny-button[data-v-665cee95]{max-width:300px;max-height:50px;height:33px;padding:0 20px;margin-top:12px;display:flex;align-items:center}.home .tiny-button .icon-home[data-v-665cee95]{display:inline-block;margin-right:8px}.general-config[data-v-670ad0dd]{padding:20px}.general-config .general-config-form .input-head[data-v-670ad0dd]{color:var(--ti-lowcode-page-manage-input-head-text-color)}.general-config .general-config-form[data-v-670ad0dd] .tiny-form-item{padding:0 12px}.general-config .general-config-form[data-v-670ad0dd] .tiny-form-item .tiny-input-group__prepend{border:1px solid var(--ti-lowcode-page-manage-input-group-border-color);background:var(--ti-lowcode-page-manage-input-group-color);border-right:1px solid var(--ti-lowcode-page-manage-input-group-border-right-color)}.general-config .general-config-form[data-v-670ad0dd] .tiny-form-item .page-type-radio{color:var(--ti-lowcode-page-manage-title-background-text-color)}.general-config .general-config-form[data-v-670ad0dd] .tiny-form-item .tiny-form-item__label{font-size:14px;color:var(--ti-lowcode-page-manage-text-color)}.general-config .general-config-form[data-v-670ad0dd] .tiny-form-item .tiny-form-item__error{font-size:14px;color:var(--ti-lowcode-page-manage-error-color)}.general-config .tip[data-v-670ad0dd]{color:var(--ti-lowcode-page-manage-tip-border-color);font-size:14px;border-radius:3px;display:flex;align-items:center}.general-config .tip .icon[data-v-670ad0dd]{color:var(--ti-lowcode-page-manage-icon-text-color)}.general-config .tip .text[data-v-670ad0dd],.general-config .tip .text-dim[data-v-670ad0dd]{color:var(--ti-lowcode-page-manage-btn-text-color)}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree{background-color:var(--ti-lowcode-page-manage-tree-text-background-color)}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node.is-current .tiny-tree-node__content{background-color:var(--ti-lowcode-page-manage-tree-node-background-color)}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree-node__content:hover{--ti-lowcode-tree-node-content-hover-bg-color: var(--ti-lowcode-page-manage-tree-node-background-color)}.input-or-output[data-v-92b58692]{color:var(--ti-lowcode-page-manage-icon-text-color);margin-top:-20px;padding:20px}.input-or-output .life-cycle-alert[data-v-92b58692]{color:var(--ti-lowcode-life-cycle-alert-color)}.input-or-output .buttons[data-v-92b58692]{display:flex}.input-or-output .buttons li[data-v-92b58692]{display:flex;align-items:center;flex:1}.input-or-output .buttons li span[data-v-92b58692]{margin-right:10px}.input-or-output .input-output-form[data-v-92b58692]{margin-top:16px;margin-left:28px}.input-or-output .input-output-form .item-wrap[data-v-92b58692]{width:348px}.input-or-output .input-output-form[data-v-92b58692] .tiny-form-item .tiny-form-item__label{font-size:14px;color:var(--ti-lowcode-page-manage-text-color)}.input-or-output .page-root-form-item[data-v-92b58692]{margin-bottom:-10px}.input-or-output .page-root-form-item[data-v-92b58692] .tiny-form-item__content{display:flex}.input-or-output .page-root-form-item[data-v-92b58692] .tiny-form-item__content .tiny-switch{margin-top:5px}.input-or-output .page-root-form-item .page-root-tips[data-v-92b58692]{margin:0 0 0 8px;font-size:14px;color:var(--ti-lowcode-page-manage-content-tips-color)}.tiny-search[data-v-cb88d05f]{padding:10px;border-top:1px solid var(--ti-lowcode-page-manage-tip-border-color);border-bottom:1px solid var(--ti-lowcode-page-manage-tip-border-color)}.block-add-content[data-v-cb88d05f]{display:flex;flex-direction:column;height:calc(100% - 45px)}.page-plugin-setting[data-v-cb88d05f] .plugin-setting-header .close-plugin-setting-icon{margin-left:16px}.page-plugin-setting[data-v-cb88d05f] .plugin-setting-content{padding:16px 0}.page-setting-collapse[data-v-cb88d05f] .tiny-collapse-item__header:before,.page-setting-collapse[data-v-cb88d05f] .tiny-collapse-item__header.is-active:before{border:none}.page-setting-collapse[data-v-cb88d05f] .tiny-collapse-item__header .svg-icon{margin-right:6px}.page-setting-collapse .base-setting[data-v-cb88d05f]{margin-top:-22px}.page-setting-collapse .input-output[data-v-cb88d05f]{margin-top:-28px}.page-setting-collapse .history-source[data-v-cb88d05f]{margin-top:7px}.pageFolder-plugin-setting[data-v-a2060cb5] .plugin-setting-header .close-plugin-setting-icon{margin-left:8px}.app-manage-search[data-v-17466f10]{padding:8px 10px;border-bottom:1px solid var(--ti-lowcode-page-manage-search-border-color)}.page-manage-collapse[data-v-17466f10]{height:calc(100% - 95px);overflow-y:auto}.page-manage-collapse .app-manage-public-page[data-v-17466f10]{position:absolute;right:0;cursor:pointer}.page-manage-collapse .app-manage-public-page svg[data-v-17466f10]{font-size:22px}.page-manage-collapse[data-v-17466f10] .tiny-collapse-item__header:before,.page-manage-collapse[data-v-17466f10] .tiny-collapse-item__header.is-active:before{border:none}.page-manage-collapse[data-v-17466f10] .tiny-collapse-item__header .title{margin-left:6px}.app-manage-tree[data-v-17466f10] .label{margin-right:10px;margin-left:20px}.app-manage-tree[data-v-17466f10] .tiny-tree{background:var(--ti-lowcode-page-manage-tree-node-background-color);color:var(--ti-lowcode-page-manage-tree-color)}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node:hover{background-color:var(--ti-lowcode-page-manage-page-tree-background-hover-color)}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node.is-current,.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node.is-current .tiny-tree-node__content,.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node.is-current .tiny-tree-node__content-box{color:var(--ti-lowcode-page-manage-tree-color);background-color:var(--ti-lowcode-page-manage-page-tree-background-active-color)}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node.is-current:hover,.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node.is-current .tiny-tree-node__content:hover,.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node.is-current .tiny-tree-node__content-box:hover{background-color:var(--ti-lowcode-page-manage-page-tree-background-hover-color)}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node.is-current>.tiny-tree-node__content-left,.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node.is-current .tiny-tree-node__content>.tiny-tree-node__content-left,.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node.is-current .tiny-tree-node__content-box>.tiny-tree-node__content-left{font-weight:700}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node__label{width:100%;display:flex;justify-content:space-between;height:30px;line-height:30px}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node__label .page-edit-icon{font-size:16px}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node__content{height:32px}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node__content:before{content:"";width:12px;height:100%;background-size:12px 32px;background-repeat:no-repeat;background-position:3px 3px;cursor:ns-resize;opacity:.35;visibility:hidden}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node__content:hover{border-radius:0}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node__content:hover .icons .setting{display:inline-block;font-size:16px}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node__content:hover:before{visibility:visible}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node__content .folder-icon{color:var(--ti-lowcode-page-manage-content-tips-color)}.app-manage-tree[data-v-17466f10] .tiny-tree .page-name-label{display:flex;align-items:center}.app-manage-tree[data-v-17466f10] .tiny-tree .page-name-label .icon-page{margin-right:-15px}.app-manage-tree[data-v-17466f10] .tiny-tree .page-name-label .label{display:inline-block;max-width:160px;overflow:hidden;text-overflow:ellipsis}.app-manage-tree[data-v-17466f10] .tiny-tree .icons{display:flex;align-items:center;padding-right:12px;font-size:16px}.app-manage-tree[data-v-17466f10] .tiny-tree .icons .page-status{display:block;width:8px;height:8px;border-radius:50%;background:green}.app-manage-tree[data-v-17466f10] .tiny-tree .icons .page-status.locked{background:red}.app-manage-tree[data-v-17466f10] .tiny-tree .icons .home{margin-left:5px}.app-manage-tree[data-v-17466f10] .tiny-tree .icons .setting{display:none;margin-left:6px}.app-manage-tree[data-v-17466f10] .tiny-tree .icons svg{color:var(--ti-lowcode-page-manage-content-tips-color)}.app-manage-tree[data-v-17466f10] .tiny-tree .icons svg:hover{color:var(--ti-lowcode-page-manage-svg-hover-color)}.app-manage-tree[data-v-17466f10] .tiny-tree .tiny-tree-node__expand-icon:not(.is-leaf){margin-left:12px;margin-right:6px}[data-v-4d84419e] .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-page",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4-alpha.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"homepage": "https://opentiny.design/tiny-engine",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@opentiny/tiny-engine-common": "1.0.
|
|
28
|
-
"@opentiny/tiny-engine-controller": "1.0.
|
|
29
|
-
"@opentiny/tiny-engine-http": "1.0.
|
|
30
|
-
"@opentiny/tiny-engine-utils": "1.0.
|
|
27
|
+
"@opentiny/tiny-engine-common": "1.0.3-alpha.0",
|
|
28
|
+
"@opentiny/tiny-engine-controller": "1.0.4-alpha.0",
|
|
29
|
+
"@opentiny/tiny-engine-http": "1.0.3-alpha.0",
|
|
30
|
+
"@opentiny/tiny-engine-utils": "1.0.5-alpha.0",
|
|
31
31
|
"@opentiny/vue": "~3.10.0",
|
|
32
32
|
"@opentiny/vue-renderless": "~3.10.0"
|
|
33
33
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"vue": "^3.4.15"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8cba0b459d0c0829554dd8adab11fe60a4931acd"
|
|
43
43
|
}
|