halo-pc 1.0.40 → 1.0.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CqtkXVmQ.js → Article-BMW_FzdK.js} +32 -31
- package/dist/{ArticleFooter-DeJdTtZD.js → ArticleFooter-7iPkMQaX.js} +13 -12
- package/dist/Autocomplete-B6Mwp9rT.js +50 -0
- package/dist/{Autocomplete-0fxB2_FC.js → Autocomplete-C-El55Lz.js} +1 -1
- package/dist/{Autocomplete-LQiKcvz1.js → Autocomplete-PZTjEBIx.js} +11 -10
- package/dist/{CSharp-BIFRQLaK.js → CSharp-BQUrQwua.js} +1 -1
- package/dist/{Calender-DPNTn-S4.js → Calender-CJXR7uhM.js} +2 -2
- package/dist/Callback-CyDW9WU2.js +21 -0
- package/dist/{Cascader-Vhc81TDV.js → Cascader-CFc_8QSm.js} +18 -17
- package/dist/Cascader-DMQjalNv.js +47 -0
- package/dist/{Checkbox-D9Sp6ZGQ.js → Checkbox-aU8e779g.js} +12 -11
- package/dist/{Checkbox-CIim5NiB.js → Checkbox-pV01os-T.js} +1 -1
- package/dist/Code-C0Kxulod.js +4 -0
- package/dist/Code-C4pIa8BE.js +60 -0
- package/dist/Code-CCJx9RSm.js +42 -0
- package/dist/{Code-yDKaH1uF.js → Code-kDBbVC1W.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-36NN7tgP.js +65 -0
- package/dist/Column-BebDf5Z9.js +75 -0
- package/dist/{Comment-tU2wBvGO.js → Comment-BgfD9WtL.js} +25 -19
- package/dist/{Compare-DqvGyQWA.js → Compare-BZucuvFP.js} +9 -8
- package/dist/{Compare-D7Gz-lE9.js → Compare-D-Byn_Gq.js} +11 -10
- package/dist/Copy-DW4jSNQi.js +44 -0
- package/dist/Custom-DIF-RYi3.js +55 -0
- package/dist/{DataExport-BDftKI0U.js → DataExport-CyQy2xjO.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js → DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js} +28 -27
- package/dist/{DataImport-CRYaaQfA.js → DataImport-BVF83UsQ.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js → DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js} +31 -30
- package/dist/{Date-Dlh1_S7p.js → Date-CqpFvbYZ.js} +1 -1
- package/dist/{Date-DPPiYLWw.js → Date-g1XKWU4b.js} +8 -7
- package/dist/{DateRange-BgF_T3ls.js → DateRange-B2afkdbT.js} +6 -5
- package/dist/{DateTime-DP-VfmtN.js → DateTime-D_x_wBZR.js} +8 -7
- package/dist/{DateTime-CNjPeK9t.js → DateTime-Zi3vtH77.js} +1 -1
- package/dist/{DateTimeRange-DbEpW4nB.js → DateTimeRange-BFWM_U7H.js} +10 -9
- package/dist/{Daterange-DHVjhrK9.js → Daterange-tXA0b0Ak.js} +5 -4
- package/dist/{Decimal-BDEWVSsK.js → Decimal-DKQ38XS_.js} +1 -1
- package/dist/{Delete-Bl0GmthL.js → Delete-BOkBpAGN.js} +20 -19
- package/dist/{Detail-BozyhOTt.js → Detail-SWgERqKG.js} +11 -10
- package/dist/{Dictionary-CJwZPQz6.js → Dictionary-Xsj_Qorw.js} +15 -9
- package/dist/{Email-D5X1SzuJ.js → Email-DILPnLkb.js} +12 -11
- package/dist/{File-DixK0K7p.js → File-BDUTK7hV.js} +40 -39
- package/dist/Image-Yx3ZHHJK.js +9 -0
- package/dist/Index-BTa4YIN9.js +174 -0
- package/dist/Index-BWukqxQl.js +4 -0
- package/dist/Index-BahY1OIJ.js +4 -0
- package/dist/Index-C9ffFYsl.js +4 -0
- package/dist/{Index-j15c7lwJ.js → Index-CiQQmYeA.js} +1 -1
- package/dist/Index-DG7Hovsx.js +4 -0
- package/dist/{Index-D2FOeoNQ.js → Index-DeYqTT9Q.js} +1 -1
- package/dist/{Index-DbXgnBz6.js → Index-WVLyjyqt.js} +16 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js → Index.vue_vue_type_script_setup_true_lang-42C0EEto.js} +13 -12
- package/dist/{Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js → Index.vue_vue_type_script_setup_true_lang-DWMiv0dC.js} +21 -15
- package/dist/{Install-WR3b4IfI.js → Install-DW5uDsXF.js} +14 -13
- package/dist/{Int-GGWiUqO2.js → Int-BM4sbZvh.js} +14 -13
- package/dist/{Int-CWsDtoxE.js → Int-BrFE_Hmm.js} +10 -9
- package/dist/List-DWjTqrJR.js +72 -0
- package/dist/Maintaince-DF3nu9Jd.js +20 -0
- package/dist/{Markdown-nVfQs7kc.js → Markdown-BC8l7O_U.js} +1 -1
- package/dist/{Month-CxKMP4kO.js → Month-DRa9o-WC.js} +1 -1
- package/dist/{Month-DnYlAi7k.js → Month-QG6OiiLU.js} +11 -10
- package/dist/Month-Y0kLXgV7.js +38 -0
- package/dist/{Normal-RcqEyIFN.js → Normal-CSy3DFPH.js} +50 -49
- package/dist/{Paging-DrdGzxeP.js → Paging-BYccIXmC.js} +43 -42
- package/dist/{PagingHeader-C8UpM9Kj.js → PagingHeader-U-oJ1TQE.js} +16 -15
- package/dist/{PagingRow-oQWCofO4.js → PagingRow-BmokRXX3.js} +14 -13
- package/dist/{Racebar-CvoF2ySW.js → Racebar-BvFHNGb8.js} +28 -22
- package/dist/{Radio-DhjfkC14.js → Radio-CjfXrTOE.js} +1 -1
- package/dist/{Register-B0Vx60wY.js → Register-BG-3_Q2E.js} +55 -54
- package/dist/RichText-C88f59ao.js +47 -0
- package/dist/{SearchForm-BHVnQaSL.js → SearchForm-C0zqD7UP.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js → SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js} +46 -45
- package/dist/{SearchHeader-C9yovXli.js → SearchHeader-e2LOidgU.js} +1 -1
- package/dist/{SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js → SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js} +1 -1
- package/dist/{Select-vgwpegBi.js → Select-CfIvGDPS.js} +21 -20
- package/dist/{Select-CX4i5KPQ.js → Select-CvP_zGxM.js} +1 -1
- package/dist/{Select-BDoCqD3I.js → Select-Cz6MPDCC.js} +11 -10
- package/dist/{Single-C3629BdC.js → Single-p-8OfzhQ.js} +101 -100
- package/dist/{Statistic-WPezAlUn.js → Statistic-BIKfbZCI.js} +32 -31
- package/dist/{Stock-EPM3j2f_.js → Stock-B7RP-SuF.js} +1 -1
- package/dist/{Stock-BD5Acf8y.js → Stock-BhOP8J0c.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js → Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js} +20 -19
- package/dist/{Switch-B0XN4K-9.js → Switch-BcDhe4_E.js} +1 -1
- package/dist/{Table-BklK1hSh.js → Table-Cy7FarYr.js} +71 -70
- package/dist/{Table-JFdOXuME.js → Table-DK-TaejU.js} +58 -57
- package/dist/Text-B580p9od.js +49 -0
- package/dist/Text-D89aQLxL.js +4 -0
- package/dist/{Text-DrJkdxZF.js → Text-YNB0It4-.js} +13 -12
- package/dist/Text.vue_vue_type_style_index_0_lang-Dokzd_qM.js +59 -0
- package/dist/{TextLink-BnijIoEJ.js → TextLink-CI-AIgdm.js} +9 -8
- package/dist/{Textarea-3SWLqQvO.js → Textarea-86C9lCtg.js} +1 -1
- package/dist/{Time-C3qlNZkJ.js → Time-BgArfSc6.js} +10 -9
- package/dist/{Timeline-B6hUIYhL.js → Timeline-O_jWjdxT.js} +19 -13
- package/dist/{Tree-JexLPBXX.js → Tree-BfFRW-xZ.js} +41 -35
- package/dist/{Tree-DBvFF4Rj.js → Tree-DayADkaC.js} +73 -72
- package/dist/{TreeNode-BOWB2WN9.js → TreeNode-BZp8w6M5.js} +10 -9
- package/dist/{Update-CDLYYwgj.js → Update-Bcdz87R4.js} +6 -5
- package/dist/{UpdateChild-DUG7pAuO.js → UpdateChild-YzPMnj_r.js} +20 -19
- package/dist/{Upload-B2hbxDsT.js → Upload-DU5VOqXj.js} +47 -46
- package/dist/Upload-Dj5nSsug.js +71 -0
- package/dist/{Year-BUF60NmB.js → Year-B3E0kOiA.js} +8 -7
- package/dist/{Year-BRsJ7b1J.js → Year-CcbzIuwy.js} +1 -1
- package/dist/assets/{clipboard-ClN4QccS.js → clipboard-DjQPoCBJ.js} +3 -1
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-BfOWWjtJ.js +2907 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/main-DxH9UW19.js +10723 -0
- package/dist/main.js +60 -59
- package/dist/style.css +1 -1
- package/esm/coms/drivers/@types/CrudProps.d.ts +2 -2
- package/package.json +1 -1
- package/dist/Autocomplete-BfhYwZ5G.js +0 -49
- package/dist/Callback-Ci5KrWOC.js +0 -20
- package/dist/Cascader-CnOEgPDf.js +0 -41
- package/dist/Code-BEjqqeFZ.js +0 -54
- package/dist/Code-BSrEPuXk.js +0 -4
- package/dist/Code-Dp1-k8sW.js +0 -36
- package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +0 -59
- package/dist/Column-B0ViSver.js +0 -69
- package/dist/Copy-Dm1LH9qB.js +0 -43
- package/dist/Custom-CLKAPWEo.js +0 -49
- package/dist/Image-BrelhCGo.js +0 -9
- package/dist/Index-BeM6hKX9.js +0 -4
- package/dist/Index-BkfLyqpm.js +0 -173
- package/dist/Index-D8UVsXwf.js +0 -4
- package/dist/Index-FL-dxfFB.js +0 -4
- package/dist/Index-fWOqfFkG.js +0 -4
- package/dist/List-kRCsHp6d.js +0 -71
- package/dist/Maintaince-BG8MUi3A.js +0 -14
- package/dist/Month-B1icZmL4.js +0 -37
- package/dist/RichText-4wrLw9cy.js +0 -41
- package/dist/Text-CNtHdodK.js +0 -4
- package/dist/Text-KAuEjP7I.js +0 -48
- package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +0 -53
- package/dist/Upload-mlk6Y4Po.js +0 -65
- package/dist/main-DymfKjqO.js +0 -16480
@@ -1,16 +1,17 @@
|
|
1
|
-
import { defineComponent as P, toRefs as T, ref as A, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as
|
1
|
+
import { defineComponent as P, toRefs as T, ref as A, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as g, unref as e, withCtx as r, createElementVNode as n, normalizeClass as w, Fragment as x, renderList as L, createBlock as y, toDisplayString as d, createTextVNode as q, createCommentVNode as F } from "vue";
|
2
2
|
import { useRoute as G, useRouter as H } from "vue-router";
|
3
|
-
import {
|
3
|
+
import { F as I, c as J, C as m, t as K, h as M, e as O } from "./main-DxH9UW19.js";
|
4
|
+
import "./assets/moment-h96o7c8I.js";
|
4
5
|
import "element-plus";
|
5
6
|
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
-
import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-
|
7
|
+
import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js";
|
7
8
|
const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
|
8
9
|
key: 0,
|
9
10
|
class: "files-image"
|
10
11
|
}, Y = { class: "file-image" }, Z = ["src"], ee = { class: "file-title" }, te = { class: "file-name" }, ae = ["src", "alt"], oe = { class: "file-title" }, le = {
|
11
12
|
key: 2,
|
12
13
|
class: "not-support"
|
13
|
-
},
|
14
|
+
}, de = /* @__PURE__ */ P({
|
14
15
|
__name: "File",
|
15
16
|
props: {
|
16
17
|
searchData: {},
|
@@ -23,125 +24,125 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
|
|
23
24
|
url: {},
|
24
25
|
win: {}
|
25
26
|
},
|
26
|
-
setup(
|
27
|
-
let
|
27
|
+
setup(S) {
|
28
|
+
let z = S, { schema: N, table: s, layout: i, next: _, set: b, searchData: ne } = T(z), f = G(), v = H(), k = A(), C = (o) => {
|
28
29
|
let t = { type: "fileLayout", value: o };
|
29
30
|
M.post("/config/save", t).then((h) => {
|
30
31
|
m.fileLayout = o;
|
31
32
|
});
|
32
33
|
}, V = (o) => {
|
33
34
|
let t = { ...f.query };
|
34
|
-
t.page = o, v.push({ path:
|
35
|
+
t.page = o, v.push({ path: _.value.paging.route, query: t });
|
35
36
|
}, B = () => {
|
36
37
|
let o = { ...f.query };
|
37
38
|
o.page = "1", o.condition = O.encode(k.value);
|
38
|
-
let t = { path:
|
39
|
+
let t = { path: _.value.paging.route, query: o };
|
39
40
|
v.push(t);
|
40
41
|
};
|
41
42
|
return (o, t) => {
|
42
43
|
const h = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), j = p("el-pagination");
|
43
44
|
return l(), u("div", U, [
|
44
|
-
|
45
|
+
g(e(I), {
|
45
46
|
title: e(J)(o.module.type, o.module.name)
|
46
47
|
}, {
|
47
48
|
operation: r(() => [
|
48
|
-
|
49
|
-
|
49
|
+
n("div", W, [
|
50
|
+
n("a", {
|
50
51
|
class: w({ active: e(m).fileLayout == "list" }),
|
51
52
|
onClick: t[0] || (t[0] = (a) => e(C)("list"))
|
52
53
|
}, t[2] || (t[2] = [
|
53
|
-
|
54
|
+
n("i", { class: "fa fa-list" }, null, -1)
|
54
55
|
]), 2),
|
55
|
-
|
56
|
+
n("a", {
|
56
57
|
class: w({ active: e(m).fileLayout == "image" }),
|
57
58
|
onClick: t[1] || (t[1] = (a) => e(C)("image"))
|
58
59
|
}, t[3] || (t[3] = [
|
59
|
-
|
60
|
+
n("i", { class: "fa fa-image" }, null, -1)
|
60
61
|
]), 2)
|
61
62
|
])
|
62
63
|
]),
|
63
64
|
append: r(() => [
|
64
65
|
e(m).fileLayout == "image" ? (l(), u("div", X, [
|
65
|
-
(l(!0), u(x, null, L(e(b)[e(
|
66
|
+
(l(!0), u(x, null, L(e(b)[e(s).name], (a, $) => (l(), y(h, {
|
66
67
|
class: "file",
|
67
|
-
to: { path: e(
|
68
|
+
to: { path: e(_).detail.route, query: { id: a[e(s).key.name], m: e(f).query.m } },
|
68
69
|
key: $
|
69
70
|
}, {
|
70
71
|
default: r(() => [
|
71
|
-
|
72
|
-
|
72
|
+
n("div", Y, [
|
73
|
+
n("img", {
|
73
74
|
src: a[e(i).url],
|
74
75
|
alt: ""
|
75
76
|
}, null, 8, Z)
|
76
77
|
]),
|
77
|
-
|
78
|
+
n("div", ee, d(a[e(i).name]), 1)
|
78
79
|
]),
|
79
80
|
_: 2
|
80
81
|
}, 1032, ["to"]))), 128))
|
81
|
-
])) : e(m).fileLayout == "list" ? (l(),
|
82
|
+
])) : e(m).fileLayout == "list" ? (l(), y(R, {
|
82
83
|
key: 1,
|
83
84
|
class: "files-list",
|
84
85
|
border: "",
|
85
|
-
data: e(b)[e(
|
86
|
+
data: e(b)[e(s).name]
|
86
87
|
}, {
|
87
88
|
empty: r(() => [
|
88
|
-
q(
|
89
|
+
q(d(e(K)("common.no_data")), 1)
|
89
90
|
]),
|
90
91
|
default: r(() => [
|
91
|
-
(l(!0), u(x, null, L(e(
|
92
|
+
(l(!0), u(x, null, L(e(s).show, (a, $) => (l(), y(D, {
|
92
93
|
"show-overflow-tooltip": "",
|
93
|
-
sortable: e(
|
94
|
+
sortable: e(s) ? "custom" : !1,
|
94
95
|
"min-width": "180",
|
95
96
|
"sort-orders": ["descending", "ascending"],
|
96
97
|
prop: a.name,
|
97
98
|
label: `${a.label}${a.prefix || a.suffix ? "(" + (a.prefix || a.suffix) + ")" : ""}`,
|
98
|
-
key: `${e(
|
99
|
+
key: `${e(s).name}.${a.name}`
|
99
100
|
}, {
|
100
101
|
default: r((c) => [
|
101
|
-
|
102
|
+
n("div", te, [
|
102
103
|
c.column.property == e(i).name ? (l(), u("img", {
|
103
104
|
key: 0,
|
104
105
|
class: "file-image",
|
105
106
|
src: c.row[e(i).url],
|
106
107
|
alt: c.row[e(i).name]
|
107
|
-
}, null, 8, ae)) :
|
108
|
-
|
108
|
+
}, null, 8, ae)) : F("", !0),
|
109
|
+
n("div", oe, d(c.row[c.column.property]), 1)
|
109
110
|
])
|
110
111
|
]),
|
111
112
|
_: 2
|
112
113
|
}, 1032, ["sortable", "prop", "label"]))), 128))
|
113
114
|
]),
|
114
115
|
_: 1
|
115
|
-
}, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" +
|
116
|
+
}, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" + d(e(m).fileLayout), 1))
|
116
117
|
]),
|
117
118
|
default: r(() => [
|
118
|
-
e(
|
119
|
+
e(s).search.length > 0 ? (l(), y(Q, {
|
119
120
|
key: 0,
|
120
|
-
schema: e(
|
121
|
-
table: e(
|
121
|
+
schema: e(N),
|
122
|
+
table: e(s),
|
122
123
|
search: e(k),
|
123
124
|
onSubmit: e(B)
|
124
|
-
}, null, 8, ["schema", "table", "search", "onSubmit"])) :
|
125
|
+
}, null, 8, ["schema", "table", "search", "onSubmit"])) : F("", !0)
|
125
126
|
]),
|
126
127
|
_: 1
|
127
128
|
}, 8, ["title"]),
|
128
|
-
|
129
|
+
g(E, {
|
129
130
|
type: "primary",
|
130
131
|
icon: "el-icon-plus"
|
131
132
|
}, {
|
132
133
|
default: r(() => [
|
133
|
-
|
134
|
-
to: { path: e(
|
134
|
+
g(h, {
|
135
|
+
to: { path: e(_).insert.route, query: { m: e(f).query.m } }
|
135
136
|
}, {
|
136
137
|
default: r(() => [
|
137
|
-
q("添加新" +
|
138
|
+
q("添加新" + d(e(s).title), 1)
|
138
139
|
]),
|
139
140
|
_: 1
|
140
141
|
}, 8, ["to"])
|
141
142
|
]),
|
142
143
|
_: 1
|
143
144
|
}),
|
144
|
-
|
145
|
+
g(j, {
|
145
146
|
background: "",
|
146
147
|
layout: "total, prev, pager, next, jumper",
|
147
148
|
"current-page": e(i).page,
|
@@ -154,5 +155,5 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
|
|
154
155
|
}
|
155
156
|
});
|
156
157
|
export {
|
157
|
-
|
158
|
+
de as default
|
158
159
|
};
|
@@ -0,0 +1,174 @@
|
|
1
|
+
import { defineComponent as j, ref as u, onMounted as D, computed as P, watch as Q, resolveComponent as p, openBlock as d, createElementBlock as C, createVNode as g, unref as l, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as R, isRef as L, withKeys as T, normalizeClass as Z, withModifiers as G, createTextVNode as $, Fragment as J, renderList as W, nextTick as A } from "vue";
|
2
|
+
import { useRoute as X } from "vue-router";
|
3
|
+
import { i as Y, z as w, O as ee, t as i, U as F, N as K, r as N, x as te } from "./main-DxH9UW19.js";
|
4
|
+
import "./assets/moment-h96o7c8I.js";
|
5
|
+
const le = { class: "login-container" }, oe = { class: "title-container" }, se = { class: "title" }, re = { class: "btn-others" }, ne = ["href"], ae = ["innerHTML"], me = /* @__PURE__ */ j({
|
6
|
+
__name: "Index",
|
7
|
+
setup(ie) {
|
8
|
+
let a = u({ id: "", secret: "" }), f = u("password"), r = u(!1), y = u(!1), V = u(), h = u(), b = u(), x = X(), O = {
|
9
|
+
id: [{
|
10
|
+
required: !0,
|
11
|
+
trigger: "blur",
|
12
|
+
validator: (t, e, s) => {
|
13
|
+
e ? e.indexOf("@") > -1 ? F.string.isEmail(e) ? s() : s(new Error("邮箱格式不正确")) : s() : s(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
|
14
|
+
}
|
15
|
+
}]
|
16
|
+
// secret: [{required: true, trigger: 'blur', validator: validateSecret}]
|
17
|
+
}, M = (t) => {
|
18
|
+
t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? r.value = !0 : r.value = !1), t.key == "CapsLock" && r.value == !0 && (r.value = !1);
|
19
|
+
}, B = () => {
|
20
|
+
f.value == "password" ? f.value = "" : f.value = "password", A(() => {
|
21
|
+
b.value.focus();
|
22
|
+
});
|
23
|
+
}, E = async (t) => {
|
24
|
+
y.value = !0, V.value.validate(async (e) => {
|
25
|
+
if (!e)
|
26
|
+
return y.value = !1, !1;
|
27
|
+
(await K.sso.createAsync(t)).login(a.value).then(({ data: c }) => {
|
28
|
+
F.url.getBackUrl() ? N.toBackUrl() : N.to("/");
|
29
|
+
}).finally(() => {
|
30
|
+
A(() => {
|
31
|
+
y.value = !1;
|
32
|
+
});
|
33
|
+
});
|
34
|
+
});
|
35
|
+
}, q = async (t) => {
|
36
|
+
let e = await K.sso.createAsync(t), s = x.query.return_url, c = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${s}`;
|
37
|
+
return e.loginUrl(te.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(c));
|
38
|
+
}, z = (t) => Object.keys(t).reduce((e, s) => (e[s] = t[s], e), {});
|
39
|
+
D(async () => {
|
40
|
+
Y.setI18nTitle("common.login");
|
41
|
+
for (let t = 0; t < w.ssos.length; t++) {
|
42
|
+
let e = w.ssos[t];
|
43
|
+
e.loginUrl = await q(e.type);
|
44
|
+
}
|
45
|
+
_.value != null && (a.value.id == "" ? h.value.focus() : a.value.secret == "" && b.value.focus());
|
46
|
+
});
|
47
|
+
let _ = P(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
|
48
|
+
return Q(() => x, (t) => {
|
49
|
+
debugger;
|
50
|
+
const e = t.query;
|
51
|
+
e && z(e);
|
52
|
+
}), (t, e) => {
|
53
|
+
const s = p("el-input"), c = p("el-form-item"), U = p("el-tooltip"), I = p("el-button"), S = p("router-link"), H = p("el-form");
|
54
|
+
return d(), C("div", le, [
|
55
|
+
g(H, {
|
56
|
+
ref_key: "loginFormRef",
|
57
|
+
ref: V,
|
58
|
+
autocomplete: "on",
|
59
|
+
"label-position": "left",
|
60
|
+
model: l(a),
|
61
|
+
rules: l(O)
|
62
|
+
}, {
|
63
|
+
default: m(() => [
|
64
|
+
n("div", oe, [
|
65
|
+
n("h3", se, k(l(ee)("title")), 1)
|
66
|
+
]),
|
67
|
+
l(_) ? (d(), v(c, {
|
68
|
+
key: 0,
|
69
|
+
prop: "id"
|
70
|
+
}, {
|
71
|
+
default: m(() => [
|
72
|
+
e[7] || (e[7] = n("span", { class: "svg-container" }, [
|
73
|
+
n("i", { class: "fa fa-user" })
|
74
|
+
], -1)),
|
75
|
+
g(s, {
|
76
|
+
ref_key: "idRef",
|
77
|
+
ref: h,
|
78
|
+
placeholder: l(i)("common.username_or_email"),
|
79
|
+
name: "id",
|
80
|
+
type: "text",
|
81
|
+
tabindex: "1",
|
82
|
+
autocomplete: "on",
|
83
|
+
modelValue: l(a).id,
|
84
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => l(a).id = o)
|
85
|
+
}, null, 8, ["placeholder", "modelValue"])
|
86
|
+
]),
|
87
|
+
_: 1
|
88
|
+
})) : R("", !0),
|
89
|
+
l(_) ? (d(), v(U, {
|
90
|
+
key: 1,
|
91
|
+
content: "Caps lock is On",
|
92
|
+
placement: "right",
|
93
|
+
manual: "",
|
94
|
+
modelValue: l(r),
|
95
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => L(r) ? r.value = o : r = o)
|
96
|
+
}, {
|
97
|
+
default: m(() => [
|
98
|
+
g(c, { prop: "secret" }, {
|
99
|
+
default: m(() => [
|
100
|
+
e[8] || (e[8] = n("span", { class: "svg-container" }, [
|
101
|
+
n("i", { class: "fa fa-key" })
|
102
|
+
], -1)),
|
103
|
+
(d(), v(s, {
|
104
|
+
ref_key: "secretRef",
|
105
|
+
ref: b,
|
106
|
+
key: l(f),
|
107
|
+
type: l(f),
|
108
|
+
placeholder: l(i)("common.password"),
|
109
|
+
name: "secret",
|
110
|
+
tabindex: "2",
|
111
|
+
autocomplete: "on",
|
112
|
+
onKeyup: [
|
113
|
+
T(l(M), ["native"]),
|
114
|
+
e[2] || (e[2] = T((o) => l(E)("Bearer"), ["enter", "native"]))
|
115
|
+
],
|
116
|
+
onBlur: e[1] || (e[1] = (o) => L(r) ? r.value = !1 : r = !1),
|
117
|
+
modelValue: l(a).secret,
|
118
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => l(a).secret = o)
|
119
|
+
}, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
|
120
|
+
n("span", {
|
121
|
+
class: "btn-pwd",
|
122
|
+
onClick: e[4] || (e[4] = //@ts-ignore
|
123
|
+
(...o) => l(B) && l(B)(...o))
|
124
|
+
}, [
|
125
|
+
n("i", {
|
126
|
+
class: Z(l(f) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
127
|
+
}, null, 2)
|
128
|
+
])
|
129
|
+
]),
|
130
|
+
_: 1
|
131
|
+
})
|
132
|
+
]),
|
133
|
+
_: 1
|
134
|
+
}, 8, ["modelValue"])) : R("", !0),
|
135
|
+
l(_) ? (d(), v(I, {
|
136
|
+
key: 2,
|
137
|
+
type: "primary",
|
138
|
+
class: "btn-login",
|
139
|
+
loading: l(y),
|
140
|
+
onClick: e[6] || (e[6] = G((o) => l(E)("Bearer"), ["prevent"]))
|
141
|
+
}, {
|
142
|
+
default: m(() => [
|
143
|
+
$(k(l(i)("common.login")), 1)
|
144
|
+
]),
|
145
|
+
_: 1
|
146
|
+
}, 8, ["loading"])) : R("", !0),
|
147
|
+
n("div", re, [
|
148
|
+
(d(!0), C(J, null, W(l(w).ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (d(), C("a", {
|
149
|
+
href: o.loginUrl
|
150
|
+
}, k(l(i)(o.text)), 9, ne))), 256)),
|
151
|
+
g(S, {
|
152
|
+
class: "btn-register",
|
153
|
+
to: "/register"
|
154
|
+
}, {
|
155
|
+
default: m(() => [
|
156
|
+
$(k(l(i)("common.register")), 1)
|
157
|
+
]),
|
158
|
+
_: 1
|
159
|
+
})
|
160
|
+
])
|
161
|
+
]),
|
162
|
+
_: 1
|
163
|
+
}, 8, ["model", "rules"]),
|
164
|
+
n("div", {
|
165
|
+
class: "powered-by",
|
166
|
+
innerHTML: l(i)("sys.powered_by")
|
167
|
+
}, null, 8, ae)
|
168
|
+
]);
|
169
|
+
};
|
170
|
+
}
|
171
|
+
});
|
172
|
+
export {
|
173
|
+
me as default
|
174
|
+
};
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { defineComponent as C, defineAsyncComponent as U, toRefs as D, computed as p, unref as e, openBlock as c, createBlock as f, withCtx as v, resolveDynamicComponent as y, isRef as b, createElementVNode as w, toDisplayString as h } from "vue";
|
2
|
+
import { U as N, t as x } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
4
|
+
const E = /* @__PURE__ */ C({
|
4
5
|
__name: "Index",
|
5
6
|
props: {
|
6
7
|
schema: {},
|
@@ -11,11 +12,11 @@ const A = /* @__PURE__ */ C({
|
|
11
12
|
config: {}
|
12
13
|
},
|
13
14
|
emits: ["submit", "change"],
|
14
|
-
setup(g, { emit:
|
15
|
-
let V =
|
15
|
+
setup(g, { emit: B }) {
|
16
|
+
let V = U(() => import("./TextLink-CI-AIgdm.js")), k = g, { schema: u, table: s, field: l, set: i, row: a, config: m } = D(k), d = p(() => {
|
16
17
|
let o = l.value.control.type;
|
17
18
|
return m.value && m.value.control && m.value.control.type ? m.value.control.type : o;
|
18
|
-
}), _ = p(() => `text-${
|
19
|
+
}), _ = p(() => `text-${N.string.getDashName(d.value)}`), t = p({
|
19
20
|
get() {
|
20
21
|
return a.value[l.value.name];
|
21
22
|
},
|
@@ -23,12 +24,12 @@ const A = /* @__PURE__ */ C({
|
|
23
24
|
a.value[l.value.name] = o;
|
24
25
|
}
|
25
26
|
});
|
26
|
-
return (o,
|
27
|
+
return (o, r) => e(l).link ? (c(), f(e(V), {
|
27
28
|
key: 0,
|
28
29
|
schema: e(u),
|
29
30
|
table: e(s),
|
30
31
|
field: e(l),
|
31
|
-
set: e(
|
32
|
+
set: e(i),
|
32
33
|
row: e(a)
|
33
34
|
}, {
|
34
35
|
default: v(() => [
|
@@ -36,13 +37,13 @@ const A = /* @__PURE__ */ C({
|
|
36
37
|
schema: e(u),
|
37
38
|
table: e(s),
|
38
39
|
field: e(l),
|
39
|
-
set: e(
|
40
|
+
set: e(i),
|
40
41
|
row: e(a),
|
41
42
|
modelValue: e(t),
|
42
|
-
"onUpdate:modelValue":
|
43
|
+
"onUpdate:modelValue": r[0] || (r[0] = (n) => b(t) ? t.value = n : t = n)
|
43
44
|
}, {
|
44
45
|
default: v(() => [
|
45
|
-
w("div", null, h(e(x)("common.unsupported_text_control", e(
|
46
|
+
w("div", null, h(e(x)("common.unsupported_text_control", e(d))), 1)
|
46
47
|
]),
|
47
48
|
_: 1
|
48
49
|
}, 8, ["schema", "table", "field", "set", "row", "modelValue"]))
|
@@ -53,18 +54,18 @@ const A = /* @__PURE__ */ C({
|
|
53
54
|
schema: e(u),
|
54
55
|
table: e(s),
|
55
56
|
field: e(l),
|
56
|
-
set: e(
|
57
|
+
set: e(i),
|
57
58
|
row: e(a),
|
58
59
|
modelValue: e(t),
|
59
|
-
"onUpdate:modelValue":
|
60
|
+
"onUpdate:modelValue": r[1] || (r[1] = (n) => b(t) ? t.value = n : t = n)
|
60
61
|
}, {
|
61
62
|
default: v(() => [
|
62
|
-
w("div", null, h(e(x)("common.unsupported_text_control", e(
|
63
|
+
w("div", null, h(e(x)("common.unsupported_text_control", e(d))), 1)
|
63
64
|
]),
|
64
65
|
_: 1
|
65
66
|
}, 8, ["schema", "table", "field", "set", "row", "modelValue"]));
|
66
67
|
}
|
67
68
|
});
|
68
69
|
export {
|
69
|
-
|
70
|
+
E as default
|
70
71
|
};
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
1
|
+
import { defineComponent as R, toRefs as x, ref as E, onMounted as k, openBlock as u, createElementBlock as B, Fragment as L, createVNode as S, unref as e, createBlock as z, resolveDynamicComponent as D, withCtx as N, createElementVNode as V, toDisplayString as $ } from "vue";
|
2
|
+
import { v as F, t as I, m as M } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
3
4
|
import "element-plus";
|
4
5
|
import "vue-router";
|
5
6
|
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
-
const j = { class: "not-support" },
|
7
|
+
const j = { class: "not-support" }, O = /* @__PURE__ */ R({
|
7
8
|
__name: "Index",
|
8
9
|
props: {
|
9
10
|
route: {},
|
@@ -19,21 +20,21 @@ const j = { class: "not-support" }, K = /* @__PURE__ */ x({
|
|
19
20
|
},
|
20
21
|
emits: ["layout-change", "row-edit", "change", "submit"],
|
21
22
|
setup(s, { expose: i, emit: m }) {
|
22
|
-
let o = m,
|
23
|
+
let o = m, d = s, { module: p, schema: c, table: l, layout: a, next: y, set: h } = x(d), n = E(), g = (t) => {
|
23
24
|
o("layout-change", t);
|
24
|
-
}, f = (t, r,
|
25
|
-
o("row-edit", t, r,
|
25
|
+
}, f = (t, r, w) => {
|
26
|
+
o("row-edit", t, r, w);
|
26
27
|
}, _ = () => {
|
27
28
|
o("change");
|
28
29
|
}, b = (t) => {
|
29
30
|
o("submit", t);
|
30
31
|
}, C = (t) => {
|
31
|
-
},
|
32
|
+
}, v = (t) => {
|
32
33
|
M.triggerResize(n.value, t);
|
33
34
|
};
|
34
|
-
return
|
35
|
-
}), i({ update: C, onResize:
|
36
|
-
|
35
|
+
return k(() => {
|
36
|
+
}), i({ update: C, onResize: v }), (t, r) => (u(), B(L, null, [
|
37
|
+
S(e(F), {
|
37
38
|
layout: e(a),
|
38
39
|
table: e(l),
|
39
40
|
onLayoutChange: e(g)
|
@@ -41,7 +42,7 @@ const j = { class: "not-support" }, K = /* @__PURE__ */ x({
|
|
41
42
|
(u(), z(D(`update-${e(a).type.toLowerCase()}`), {
|
42
43
|
ref_key: "layoutRef",
|
43
44
|
ref: n,
|
44
|
-
module: e(
|
45
|
+
module: e(p),
|
45
46
|
schema: e(c),
|
46
47
|
table: e(l),
|
47
48
|
layout: e(a),
|
@@ -62,5 +63,5 @@ const j = { class: "not-support" }, K = /* @__PURE__ */ x({
|
|
62
63
|
}
|
63
64
|
});
|
64
65
|
export {
|
65
|
-
|
66
|
+
O as _
|
66
67
|
};
|
@@ -1,9 +1,15 @@
|
|
1
1
|
import { defineComponent as D, toRefs as N, ref as B, openBlock as c, createElementBlock as K, Fragment as L, createVNode as E, unref as e, createBlock as P, resolveDynamicComponent as V, withCtx as $, createElementVNode as F, toDisplayString as I } from "vue";
|
2
|
-
import {
|
2
|
+
import { v as j, m as r } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/liquidjs-BfOWWjtJ.js";
|
4
|
+
import "./assets/underscore-B0BCaBxV.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/clone-BZn0cTAu.js";
|
7
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
8
|
+
import "./assets/moment-h96o7c8I.js";
|
3
9
|
import "element-plus";
|
4
10
|
import "vue-router";
|
5
11
|
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
-
const q = { class: "not-support" },
|
12
|
+
const q = { class: "not-support" }, te = /* @__PURE__ */ D({
|
7
13
|
__name: "Index",
|
8
14
|
props: {
|
9
15
|
searchData: {},
|
@@ -17,8 +23,8 @@ const q = { class: "not-support" }, U = /* @__PURE__ */ D({
|
|
17
23
|
win: {}
|
18
24
|
},
|
19
25
|
emits: ["navigate", "sort", "search", "page-change", "size-change", "succeed", "close", "layout-change"],
|
20
|
-
setup(
|
21
|
-
let o = u,
|
26
|
+
setup(i, { expose: g, emit: u }) {
|
27
|
+
let o = u, m = i, { url: p, win: h, module: d, schema: y, table: s, layout: n, next: C, set: f, searchData: _ } = N(m), l = B(), S = (t, a) => {
|
22
28
|
o("navigate", t, a);
|
23
29
|
}, v = (t, a) => {
|
24
30
|
o("sort", t, a);
|
@@ -30,12 +36,12 @@ const q = { class: "not-support" }, U = /* @__PURE__ */ D({
|
|
30
36
|
o("size-change", t, a);
|
31
37
|
}, k = (t = null) => {
|
32
38
|
o("succeed", t);
|
33
|
-
},
|
39
|
+
}, R = () => {
|
34
40
|
o("close");
|
35
|
-
},
|
41
|
+
}, w = (t) => {
|
36
42
|
o("layout-change", t);
|
37
43
|
};
|
38
|
-
return
|
44
|
+
return g({ onResize: (t) => {
|
39
45
|
r.triggerResize(l.value, t);
|
40
46
|
}, onKeyboard: (t, a) => {
|
41
47
|
r.triggerKeyboard(l.value, t, a);
|
@@ -45,27 +51,27 @@ const q = { class: "not-support" }, U = /* @__PURE__ */ D({
|
|
45
51
|
E(e(j), {
|
46
52
|
layout: e(n),
|
47
53
|
table: e(s),
|
48
|
-
onLayoutChange: e(
|
54
|
+
onLayoutChange: e(w)
|
49
55
|
}, null, 8, ["layout", "table", "onLayoutChange"]),
|
50
56
|
(c(), P(V(`paging-${e(n).type.toLowerCase()}`), {
|
51
57
|
ref_key: "pagingRef",
|
52
58
|
ref: l,
|
53
|
-
url: e(
|
54
|
-
win: e(
|
59
|
+
url: e(p),
|
60
|
+
win: e(h),
|
55
61
|
module: e(d),
|
56
62
|
schema: e(y),
|
57
63
|
table: e(s),
|
58
64
|
layout: e(n),
|
59
65
|
next: e(C),
|
60
|
-
set: e(
|
61
|
-
"search-data": e(
|
62
|
-
onNavigate: e(
|
66
|
+
set: e(f),
|
67
|
+
"search-data": e(_),
|
68
|
+
onNavigate: e(S),
|
63
69
|
onSort: e(v),
|
64
70
|
onSearch: e(b),
|
65
71
|
onPageChange: e(x),
|
66
72
|
onSizeChange: e(z),
|
67
73
|
onSucceed: e(k),
|
68
|
-
onClose: e(
|
74
|
+
onClose: e(R)
|
69
75
|
}, {
|
70
76
|
default: $(() => [
|
71
77
|
F("div", q, "未支持的分页布局方式:" + I(e(n).type), 1)
|
@@ -76,5 +82,5 @@ const q = { class: "not-support" }, U = /* @__PURE__ */ D({
|
|
76
82
|
}
|
77
83
|
});
|
78
84
|
export {
|
79
|
-
|
85
|
+
te as _
|
80
86
|
};
|