halo-pc 1.0.13 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-DASEvkfO.js +194 -0
- package/dist/{ArticleFooter-BbDi3-MM.js → ArticleFooter-BSesl8iy.js} +17 -24
- package/dist/{Autocomplete-KcemMig-.js → Autocomplete-ClAQY5V5.js} +1 -1
- package/dist/Autocomplete-CzfOoMve.js +48 -0
- package/dist/Autocomplete-DToic2Cg.js +49 -0
- package/dist/{CSharp-Re2Hef51.js → CSharp-23QccebX.js} +1 -1
- package/dist/{Calender-BdLz8uVu.js → Calender-DZkQaIeV.js} +3 -3
- package/dist/Callback-CWBDUe_C.js +20 -0
- package/dist/Cascader-BDfFyqiv.js +41 -0
- package/dist/Cascader-CpD_hbhQ.js +81 -0
- package/dist/Checkbox--gCBkIuI.js +70 -0
- package/dist/{Checkbox-C4vv9clz.js → Checkbox-SLi7MK1r.js} +1 -1
- package/dist/Code-BVTjF5rW.js +54 -0
- package/dist/{Code-oAwc2PqM.js → Code-C4hdU4t4.js} +1 -1
- package/dist/Code-CO4WPAe_.js +4 -0
- package/dist/Code-nrn4wOhB.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
- package/dist/Column-DcMAu4JL.js +68 -0
- package/dist/Comment-CPxVIapg.js +98 -0
- package/dist/Compare-C2oFy0EZ.js +56 -0
- package/dist/Compare-P9zOBC1v.js +26 -0
- package/dist/Copy-B5vrho98.js +43 -0
- package/dist/Custom-BETJLilj.js +51 -0
- package/dist/{DataExport-Bfcwgxhl.js → DataExport-YTc4EX6l.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DxEJA5Ee.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
- package/dist/{DataImport-BPx3VvYv.js → DataImport-ByV8MQkV.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-5gkTElFL.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
- package/dist/{Date-FuMiaUxd.js → Date-DbTzQla9.js} +1 -1
- package/dist/Date-DpiWNuFs.js +37 -0
- package/dist/DateRange-Su0Q2cwY.js +57 -0
- package/dist/{DateTime-CyCcFf_l.js → DateTime-C3NrioJi.js} +1 -1
- package/dist/DateTime-QyKfqaVG.js +38 -0
- package/dist/{DateTimeRange-Db9BDn2x.js → DateTimeRange-lytkhCjC.js} +11 -18
- package/dist/Daterange-D7ZHkOmo.js +57 -0
- package/dist/{Decimal-F1-H75HK.js → Decimal-CTTT98BQ.js} +1 -1
- package/dist/Delete-MfXy7gUi.js +56 -0
- package/dist/{Detail-AhGw1lSI.js → Detail-CUiSzyT7.js} +16 -23
- package/dist/Dictionary-Dd_IU-Hn.js +55 -0
- package/dist/Email-BzN4JpJv.js +48 -0
- package/dist/{File-1ATMHoXy.js → File-Ckh37Ne2.js} +42 -49
- package/dist/Image-Dkd69DoD.js +9 -0
- package/dist/Index-CGJLRExG.js +4 -0
- package/dist/Index-CLzHDG05.js +4 -0
- package/dist/{Index-BlsoOd-w.js → Index-DJJcNPgN.js} +61 -67
- package/dist/{Index-Bk0v21aV.js → Index-DlrpDUD3.js} +1 -1
- package/dist/Index-DxvVjg9S.js +70 -0
- package/dist/{Index-CXbpni6W.js → Index-G36KYPCK.js} +1 -1
- package/dist/Index-dTIwhIau.js +4 -0
- package/dist/{Index-CY3JroZR.js → Index-x4c71OJZ.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DqLF_iyM.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C5HbpsSj.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
- package/dist/{Index.vue_vue_type_style_index_0_lang-fOkzw7J1.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
- package/dist/{Install-DWNrbMRl.js → Install-BW_ulT9I.js} +21 -28
- package/dist/Int-BRqYiJo7.js +41 -0
- package/dist/{Int-E-wewJ2r.js → Int-BYSjwPG_.js} +9 -16
- package/dist/List-DAFqVlam.js +73 -0
- package/dist/Maintaince-B8mM4PEp.js +14 -0
- package/dist/{Markdown-DBvQ_Q4I.js → Markdown-BXKlgSON.js} +1 -1
- package/dist/Month-BHvq72xE.js +37 -0
- package/dist/Month-BiW1DL44.js +38 -0
- package/dist/{Month-BMgXtQVp.js → Month-DKeTzNrD.js} +1 -1
- package/dist/{Normal-TE2XNiGu.js → Normal-CgSREifM.js} +48 -54
- package/dist/Paging-D02YApLL.js +94 -0
- package/dist/{PagingHeader-DHI1x6n2.js → PagingHeader-DJ7MmfGl.js} +37 -44
- package/dist/{PagingRow-CdXpvFNC.js → PagingRow-BM1GMtrr.js} +21 -28
- package/dist/QueryApi-ChpV_S8J.js +13 -0
- package/dist/{Racebar-CZVxC7hF.js → Racebar-CZlaC5Gm.js} +43 -49
- package/dist/{Radio-BdXipXA2.js → Radio-BPq3WJa4.js} +1 -1
- package/dist/{Register-t3oEydyQ.js → Register-ByxrZyWq.js} +71 -77
- package/dist/RichText-BtQDAhn9.js +41 -0
- package/dist/{SearchFooter-BpJrsqZV.js → SearchFooter-B61gsy3w.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-XXawph5O.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
- package/dist/{SearchForm-CwRcTMlw.js → SearchForm-CLvZoPGQ.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DU69JJ1z.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
- package/dist/Select-C_afSAvf.js +111 -0
- package/dist/{Select-DGGUWJY4.js → Select-DGXJMnE9.js} +19 -26
- package/dist/{Select-UUymDTLU.js → Select-Nb9K2FMY.js} +1 -1
- package/dist/{Single-C7v2P3LF.js → Single-C-2qA2MU.js} +111 -117
- package/dist/{Statistic-C6J7v2xF.js → Statistic-B1K-qIZb.js} +43 -51
- package/dist/{Stock-Ct-HKlln.js → Stock-C560McFR.js} +1 -1
- package/dist/{Stock-DSnE1Bzv.js → Stock-_rnn0B8I.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DtH6bO8x.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +31 -39
- package/dist/{Switch-Bi8hhG_X.js → Switch-BadvkLSw.js} +1 -1
- package/dist/{Table-SSfqvIzl.js → Table-B46N43V3.js} +67 -72
- package/dist/{Table-D0P60c_b.js → Table-Dk48tQ1r.js} +63 -70
- package/dist/Text-CNF204mx.js +53 -0
- package/dist/Text-DblKaz4m.js +52 -0
- package/dist/Text-y-q7UXlg.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
- package/dist/TextLink-B4Q0zX1K.js +59 -0
- package/dist/{Textarea-CzUa7wZ2.js → Textarea-D1BOQFgK.js} +1 -1
- package/dist/Time-DZQxglEi.js +37 -0
- package/dist/Timeline-8QaD9H_I.js +53 -0
- package/dist/Tree-BUcyK0i_.js +117 -0
- package/dist/{Tree-6sdSDjF7.js → Tree-DVeTdmmL.js} +64 -70
- package/dist/TreeNode-BScAFHPZ.js +37 -0
- package/dist/{Update-Bgn_-Tk7.js → Update-BbU5H_Qf.js} +14 -21
- package/dist/{UpdateChild-BOHAM_TM.js → UpdateChild-BbXuXfOR.js} +19 -26
- package/dist/Upload-C1obfZui.js +146 -0
- package/dist/Upload-CmtHETKR.js +67 -0
- package/dist/UploadApi-2sfpKCMa.js +13 -0
- package/dist/Year-CRd3PkNx.js +41 -0
- package/dist/{Year-BbZI6olW.js → Year-CTo-9KjE.js} +1 -1
- package/dist/main-65efBfek.js +19835 -0
- package/dist/main.js +47 -49
- package/dist/style.css +1 -1
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/vite.config.d.ts +6 -0
- package/package.json +2 -2
- package/dist/Article-X51Oz1hI.js +0 -198
- package/dist/Autocomplete-Ci1CXGQE.js +0 -55
- package/dist/Autocomplete-Co_6LMOR.js +0 -54
- package/dist/Callback-DwiifiR-.js +0 -27
- package/dist/Cascader-BrjhyzSI.js +0 -88
- package/dist/Cascader-DuG1TFF-.js +0 -48
- package/dist/Checkbox-DAsy2Gtb.js +0 -77
- package/dist/Code-CNioVNv0.js +0 -4
- package/dist/Code-CQQJJ5Jx.js +0 -61
- package/dist/Code-DAMTIprA.js +0 -43
- package/dist/Code.vue_vue_type_style_index_0_lang-G1i4uKJp.js +0 -66
- package/dist/Column-DMN_0BnR.js +0 -75
- package/dist/Comment-D4gvdlOG.js +0 -105
- package/dist/Compare-B9ms7AkH.js +0 -63
- package/dist/Compare-OHWeHehJ.js +0 -33
- package/dist/Copy-B6pQ--3T.js +0 -50
- package/dist/Custom-Dt_-KfRY.js +0 -58
- package/dist/Date-DAud0Tf9.js +0 -44
- package/dist/DateRange-ClHpJNRt.js +0 -64
- package/dist/DateTime-BO1c3xG2.js +0 -45
- package/dist/Daterange-BlMa4jnq.js +0 -64
- package/dist/Delete-BVH0G9h3.js +0 -63
- package/dist/Dictionary-DwcOV9xl.js +0 -60
- package/dist/Email-BljE8jDr.js +0 -55
- package/dist/Image-Bv2Ducoj.js +0 -9
- package/dist/Index-BFuHqDAs.js +0 -4
- package/dist/Index-D-TyDnGW.js +0 -4
- package/dist/Index-D2H5yTHn.js +0 -4
- package/dist/Index-YG1SBeIv.js +0 -76
- package/dist/Int-g8pM8ZyY.js +0 -47
- package/dist/List-ow09enu_.js +0 -80
- package/dist/Maintaince-Ctz2-ztL.js +0 -21
- package/dist/Month-CPMc1YrA.js +0 -45
- package/dist/Month-bDRWnCLy.js +0 -44
- package/dist/Paging-668tf97P.js +0 -100
- package/dist/QueryApi-UJNYVuJd.js +0 -21
- package/dist/RichText-BDRC1veI.js +0 -48
- package/dist/Select-RlOWoUwz.js +0 -118
- package/dist/Text-McD2Rcic.js +0 -59
- package/dist/Text-Stj6-whX.js +0 -4
- package/dist/Text-V0WQUxoe.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BuHdoSkB.js +0 -60
- package/dist/TextLink-DmRFUHgF.js +0 -66
- package/dist/Time-CgOW3aic.js +0 -44
- package/dist/Timeline-BV-wfL2F.js +0 -60
- package/dist/Tree-r6FMB9WN.js +0 -123
- package/dist/TreeNode-Y4ktCxAQ.js +0 -43
- package/dist/Upload-BGYLdPIM.js +0 -151
- package/dist/Upload-Df16iaP1.js +0 -73
- package/dist/UploadApi-CnAUAXVp.js +0 -21
- package/dist/Year-OqMhzqjx.js +0 -48
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/state-local-CEworIRt.js +0 -131
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/dist/main-RpQODrQa.js +0 -8936
@@ -1,15 +1,8 @@
|
|
1
|
-
import { defineComponent as C, toRefs as h, resolveComponent as v, openBlock as x, createBlock as b, unref as e, withCtx as t, createVNode as
|
2
|
-
import "./
|
3
|
-
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
-
import "./assets/clone-BZn0cTAu.js";
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
7
|
-
import "./assets/moment-h96o7c8I.js";
|
8
|
-
import { L as N, t as m } from "./main-RpQODrQa.js";
|
9
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
1
|
+
import { defineComponent as C, toRefs as h, resolveComponent as v, openBlock as x, createBlock as b, unref as e, withCtx as t, createVNode as c, createTextVNode as a, toDisplayString as i, createElementVNode as m } from "vue";
|
2
|
+
import { I as N, U as s } from "./main-65efBfek.js";
|
10
3
|
import "vue-router";
|
11
4
|
import "./assets/intro.js-DxWjEdp_.js";
|
12
|
-
const V = /* @__PURE__ */
|
5
|
+
const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__PURE__ */ m("i", { class: "fa fa-copy" }, null, -1), B = /* @__PURE__ */ m("i", { class: "fa fa-chevron-left" }, null, -1), T = /* @__PURE__ */ C({
|
13
6
|
__name: "Detail",
|
14
7
|
props: {
|
15
8
|
route: {},
|
@@ -19,18 +12,18 @@ const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
|
|
19
12
|
},
|
20
13
|
emits: ["copy", "edit", "close"],
|
21
14
|
setup(_, { emit: f }) {
|
22
|
-
let
|
23
|
-
|
15
|
+
let n = f, u = _, { route: D, table: r, set: p, next: U } = h(u), d = (o) => {
|
16
|
+
n("copy", p.value[r.value.name][0], o);
|
24
17
|
}, y = (o) => {
|
25
|
-
|
18
|
+
n("edit", p.value[r.value.name][0], o);
|
26
19
|
}, k = () => {
|
27
|
-
|
20
|
+
n("close");
|
28
21
|
};
|
29
|
-
return (o,
|
30
|
-
const
|
22
|
+
return (o, w) => {
|
23
|
+
const l = v("el-button");
|
31
24
|
return x(), b(e(N), { padding: 5 }, {
|
32
25
|
default: t(() => [
|
33
|
-
l
|
26
|
+
c(l, {
|
34
27
|
type: "primary",
|
35
28
|
onClick: e(y)
|
36
29
|
}, {
|
@@ -38,11 +31,11 @@ const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
|
|
38
31
|
V
|
39
32
|
]),
|
40
33
|
default: t(() => [
|
41
|
-
|
34
|
+
a(" " + i(e(s)("common.modify")), 1)
|
42
35
|
]),
|
43
36
|
_: 1
|
44
37
|
}, 8, ["onClick"]),
|
45
|
-
l
|
38
|
+
c(l, {
|
46
39
|
type: "primary",
|
47
40
|
plain: "",
|
48
41
|
onClick: e(d)
|
@@ -51,16 +44,16 @@ const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
|
|
51
44
|
g
|
52
45
|
]),
|
53
46
|
default: t(() => [
|
54
|
-
|
47
|
+
a(" " + i(e(s)("common.copy")), 1)
|
55
48
|
]),
|
56
49
|
_: 1
|
57
50
|
}, 8, ["onClick"]),
|
58
|
-
l
|
51
|
+
c(l, { onClick: e(k) }, {
|
59
52
|
icon: t(() => [
|
60
53
|
B
|
61
54
|
]),
|
62
55
|
default: t(() => [
|
63
|
-
|
56
|
+
a(" " + i(e(s)("common.back")), 1)
|
64
57
|
]),
|
65
58
|
_: 1
|
66
59
|
}, 8, ["onClick"])
|
@@ -71,5 +64,5 @@ const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
|
|
71
64
|
}
|
72
65
|
});
|
73
66
|
export {
|
74
|
-
|
67
|
+
T as default
|
75
68
|
};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { defineComponent as g, toRefs as x, computed as r, resolveComponent as h, openBlock as o, createElementBlock as a, Fragment as V, renderList as k, unref as b, createBlock as B, normalizeStyle as C, withCtx as N, createTextVNode as S, toDisplayString as n, createCommentVNode as w } from "vue";
|
2
|
+
import { f as s, X as D, k as E } from "./main-65efBfek.js";
|
3
|
+
const z = { class: "text-dictionary" }, F = {
|
4
|
+
key: 0,
|
5
|
+
class: "suffix"
|
6
|
+
}, j = /* @__PURE__ */ g({
|
7
|
+
__name: "Dictionary",
|
8
|
+
props: {
|
9
|
+
schema: {},
|
10
|
+
table: {},
|
11
|
+
field: {},
|
12
|
+
set: {},
|
13
|
+
row: {},
|
14
|
+
modelValue: { type: [String, Number, Boolean] }
|
15
|
+
},
|
16
|
+
emits: ["submit", "change", "update:modelValue"],
|
17
|
+
setup(i, { emit: c }) {
|
18
|
+
let u = c, m = i, { table: L, field: f, set: R, modelValue: d } = x(m), t = r({
|
19
|
+
get() {
|
20
|
+
return d.value;
|
21
|
+
},
|
22
|
+
set(e) {
|
23
|
+
u("update:modelValue", e), u("change", e);
|
24
|
+
}
|
25
|
+
}), p = r(() => {
|
26
|
+
if (t.value == null)
|
27
|
+
return [];
|
28
|
+
if (s.isNumber(t.value))
|
29
|
+
return [t.value];
|
30
|
+
if (s.isBoolean(t.value))
|
31
|
+
return [t.value];
|
32
|
+
let e = t.value.toString();
|
33
|
+
return D.isEmpty(e) ? [] : e.split(",");
|
34
|
+
}), _ = r(() => E.fromValues(p.value, f.value.control.data.data, "value", "text"));
|
35
|
+
return (e, T) => {
|
36
|
+
const v = h("el-tag");
|
37
|
+
return o(), a("div", z, [
|
38
|
+
(o(!0), a(V, null, k(b(_), (l, y) => (o(), B(v, {
|
39
|
+
type: "info",
|
40
|
+
style: C({ color: l.color }),
|
41
|
+
key: y
|
42
|
+
}, {
|
43
|
+
default: N(() => [
|
44
|
+
S(n(l.text) + " ", 1),
|
45
|
+
l.suffix ? (o(), a("span", F, "(" + n(l.suffix) + ")", 1)) : w("", !0)
|
46
|
+
]),
|
47
|
+
_: 2
|
48
|
+
}, 1032, ["style"]))), 128))
|
49
|
+
]);
|
50
|
+
};
|
51
|
+
}
|
52
|
+
});
|
53
|
+
export {
|
54
|
+
j as default
|
55
|
+
};
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { defineComponent as f, toRefs as V, computed as _, resolveComponent as b, openBlock as y, createBlock as h, unref as e, withKeys as x, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as C } from "vue";
|
2
|
+
import { z as K } from "./main-65efBfek.js";
|
3
|
+
const S = /* @__PURE__ */ f({
|
4
|
+
__name: "Email",
|
5
|
+
props: {
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
set: {},
|
10
|
+
row: {},
|
11
|
+
modelValue: {}
|
12
|
+
},
|
13
|
+
emits: ["submit", "change", "update:modelValue"],
|
14
|
+
setup(i, { emit: s }) {
|
15
|
+
let o = s, u = i, { table: d, field: t, set: z, modelValue: p } = V(u), r = () => {
|
16
|
+
o("submit");
|
17
|
+
}, l = _({
|
18
|
+
get() {
|
19
|
+
return p.value;
|
20
|
+
},
|
21
|
+
set(a) {
|
22
|
+
o("update:modelValue", a), o("change", a);
|
23
|
+
}
|
24
|
+
});
|
25
|
+
return (a, n) => {
|
26
|
+
const c = b("el-input");
|
27
|
+
return y(), h(c, {
|
28
|
+
type: "email",
|
29
|
+
disabled: e(t).control.readonly,
|
30
|
+
placeholder: e(K)(e(d).name, e(t).name),
|
31
|
+
onKeyup: x(e(r), ["enter", "native"]),
|
32
|
+
modelValue: e(l),
|
33
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => g(l) ? l.value = m : l = m)
|
34
|
+
}, k({ _: 2 }, [
|
35
|
+
e(t).suffix ? {
|
36
|
+
name: "append",
|
37
|
+
fn: v(() => [
|
38
|
+
w(C(e(t).suffix), 1)
|
39
|
+
]),
|
40
|
+
key: "0"
|
41
|
+
} : void 0
|
42
|
+
]), 1032, ["disabled", "placeholder", "onKeyup", "modelValue"]);
|
43
|
+
};
|
44
|
+
}
|
45
|
+
});
|
46
|
+
export {
|
47
|
+
S as default
|
48
|
+
};
|
@@ -1,26 +1,19 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useRoute as
|
3
|
-
import "./
|
4
|
-
import "./assets/underscore.string-DVXD2SZo.js";
|
5
|
-
import "./assets/clone-BZn0cTAu.js";
|
6
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
7
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
8
|
-
import "./assets/moment-h96o7c8I.js";
|
9
|
-
import { I as H, b as J, B as c, t as K, h as M, c as O } from "./main-RpQODrQa.js";
|
10
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
1
|
+
import { defineComponent as j, toRefs as P, ref as T, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as h, unref as e, withCtx as r, createElementVNode as s, normalizeClass as $, Fragment as q, renderList as x, createBlock as y, toDisplayString as _, createTextVNode as w, createCommentVNode as S } from "vue";
|
2
|
+
import { useRoute as W, useRouter as A } from "vue-router";
|
3
|
+
import { y as G, b as H, n as c, U as I, L as J, l as K } from "./main-65efBfek.js";
|
11
4
|
import "./assets/intro.js-DxWjEdp_.js";
|
12
|
-
import { _ as
|
13
|
-
const
|
5
|
+
import { _ as M } from "./SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js";
|
6
|
+
const O = { class: "file-layout" }, Q = { class: "toolbar" }, X = /* @__PURE__ */ s("i", { class: "fa fa-list" }, null, -1), Y = [
|
14
7
|
X
|
15
8
|
], Z = /* @__PURE__ */ s("i", { class: "fa fa-image" }, null, -1), ee = [
|
16
9
|
Z
|
17
10
|
], te = {
|
18
11
|
key: 0,
|
19
12
|
class: "files-image"
|
20
|
-
},
|
13
|
+
}, ae = { class: "file-image" }, oe = ["src"], le = { class: "file-title" }, se = { class: "file-name" }, ne = ["src", "alt"], re = { class: "file-title" }, ie = {
|
21
14
|
key: 2,
|
22
15
|
class: "not-support"
|
23
|
-
},
|
16
|
+
}, fe = /* @__PURE__ */ j({
|
24
17
|
__name: "File",
|
25
18
|
props: {
|
26
19
|
searchData: {},
|
@@ -32,67 +25,67 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ *
|
|
32
25
|
set: {}
|
33
26
|
},
|
34
27
|
setup(z) {
|
35
|
-
let
|
36
|
-
let
|
37
|
-
|
38
|
-
c.fileLayout =
|
28
|
+
let F = z, { schema: N, table: n, layout: i, next: d, set: b, searchData: ue } = P(F), f = W(), v = A(), k = T(), C = (a) => {
|
29
|
+
let o = { type: "fileLayout", value: a };
|
30
|
+
J.post("/user/config", o).then((g) => {
|
31
|
+
c.fileLayout = a;
|
39
32
|
});
|
40
|
-
},
|
41
|
-
let a = { ...f.query };
|
42
|
-
a.page = o, v.push({ path: d.value.paging.route, query: a });
|
43
|
-
}, V = () => {
|
33
|
+
}, V = (a) => {
|
44
34
|
let o = { ...f.query };
|
45
|
-
o.page =
|
46
|
-
|
47
|
-
|
35
|
+
o.page = a, v.push({ path: d.value.paging.route, query: o });
|
36
|
+
}, B = () => {
|
37
|
+
let a = { ...f.query };
|
38
|
+
a.page = "1", a.condition = K.encode(k.value);
|
39
|
+
let o = { path: d.value.paging.route, query: a };
|
40
|
+
v.push(o);
|
48
41
|
};
|
49
|
-
return (
|
50
|
-
const
|
51
|
-
return l(), u("div",
|
52
|
-
h(e(
|
53
|
-
title: e(
|
42
|
+
return (a, o) => {
|
43
|
+
const g = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), U = p("el-pagination");
|
44
|
+
return l(), u("div", O, [
|
45
|
+
h(e(G), {
|
46
|
+
title: e(H)(a.module.type, a.module.name)
|
54
47
|
}, {
|
55
48
|
operation: r(() => [
|
56
|
-
s("div",
|
49
|
+
s("div", Q, [
|
57
50
|
s("a", {
|
58
|
-
class:
|
59
|
-
onClick:
|
51
|
+
class: $({ active: e(c).fileLayout == "list" }),
|
52
|
+
onClick: o[0] || (o[0] = (t) => e(C)("list"))
|
60
53
|
}, Y, 2),
|
61
54
|
s("a", {
|
62
|
-
class:
|
63
|
-
onClick:
|
55
|
+
class: $({ active: e(c).fileLayout == "image" }),
|
56
|
+
onClick: o[1] || (o[1] = (t) => e(C)("image"))
|
64
57
|
}, ee, 2)
|
65
58
|
])
|
66
59
|
]),
|
67
60
|
append: r(() => [
|
68
61
|
e(c).fileLayout == "image" ? (l(), u("div", te, [
|
69
|
-
(l(!0), u(
|
62
|
+
(l(!0), u(q, null, x(e(b)[e(n).name], (t, L) => (l(), y(g, {
|
70
63
|
class: "file",
|
71
64
|
to: { path: e(d).detail.route, query: { id: t[e(n).key.name], m: e(f).query.m } },
|
72
|
-
key:
|
65
|
+
key: L
|
73
66
|
}, {
|
74
67
|
default: r(() => [
|
75
|
-
s("div",
|
68
|
+
s("div", ae, [
|
76
69
|
s("img", {
|
77
70
|
src: t[e(i).url],
|
78
71
|
alt: ""
|
79
|
-
}, null, 8,
|
72
|
+
}, null, 8, oe)
|
80
73
|
]),
|
81
74
|
s("div", le, _(t[e(i).name]), 1)
|
82
75
|
]),
|
83
76
|
_: 2
|
84
77
|
}, 1032, ["to"]))), 128))
|
85
|
-
])) : e(c).fileLayout == "list" ? (l(),
|
78
|
+
])) : e(c).fileLayout == "list" ? (l(), y(R, {
|
86
79
|
key: 1,
|
87
80
|
class: "files-list",
|
88
81
|
border: "",
|
89
82
|
data: e(b)[e(n).name]
|
90
83
|
}, {
|
91
84
|
empty: r(() => [
|
92
|
-
w(_(e(
|
85
|
+
w(_(e(I)("common.no_data")), 1)
|
93
86
|
]),
|
94
87
|
default: r(() => [
|
95
|
-
(l(!0), u(
|
88
|
+
(l(!0), u(q, null, x(e(n).show, (t, L) => (l(), y(D, {
|
96
89
|
"show-overflow-tooltip": "",
|
97
90
|
sortable: e(n) ? "custom" : !1,
|
98
91
|
"min-width": "180",
|
@@ -119,12 +112,12 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ *
|
|
119
112
|
}, 8, ["data"])) : (l(), u("div", ie, "未支持的文件布局:" + _(e(c).fileLayout), 1))
|
120
113
|
]),
|
121
114
|
default: r(() => [
|
122
|
-
e(n).search.length > 0 ? (l(),
|
115
|
+
e(n).search.length > 0 ? (l(), y(M, {
|
123
116
|
key: 0,
|
124
|
-
schema: e(
|
117
|
+
schema: e(N),
|
125
118
|
table: e(n),
|
126
119
|
search: e(k),
|
127
|
-
onSubmit: e(
|
120
|
+
onSubmit: e(B)
|
128
121
|
}, null, 8, ["schema", "table", "search", "onSubmit"])) : S("", !0)
|
129
122
|
]),
|
130
123
|
_: 1
|
@@ -134,7 +127,7 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ *
|
|
134
127
|
icon: "el-icon-plus"
|
135
128
|
}, {
|
136
129
|
default: r(() => [
|
137
|
-
h(
|
130
|
+
h(g, {
|
138
131
|
to: { path: e(d).insert.route, query: { m: e(f).query.m } }
|
139
132
|
}, {
|
140
133
|
default: r(() => [
|
@@ -145,18 +138,18 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ *
|
|
145
138
|
]),
|
146
139
|
_: 1
|
147
140
|
}),
|
148
|
-
h(
|
141
|
+
h(U, {
|
149
142
|
background: "",
|
150
143
|
layout: "total, prev, pager, next, jumper",
|
151
144
|
"current-page": e(i).page,
|
152
145
|
"page-size": e(i).pageSize,
|
153
146
|
total: e(i).count,
|
154
|
-
onCurrentChange: e(
|
147
|
+
onCurrentChange: e(V)
|
155
148
|
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
|
156
149
|
]);
|
157
150
|
};
|
158
151
|
}
|
159
152
|
});
|
160
153
|
export {
|
161
|
-
|
154
|
+
fe as default
|
162
155
|
};
|
@@ -1,20 +1,14 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useRoute as
|
3
|
-
import "./
|
4
|
-
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/clone-BZn0cTAu.js";
|
7
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
8
|
-
import "./assets/moment-h96o7c8I.js";
|
9
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
10
|
-
const le = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
|
1
|
+
import { defineComponent as P, ref as u, onMounted as S, computed as j, watch as D, resolveComponent as c, openBlock as d, createElementBlock as U, createVNode as g, unref as l, withCtx as p, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as C, isRef as $, withKeys as L, normalizeClass as G, withModifiers as Q, createTextVNode as T, Fragment as W, renderList as X, nextTick as A } from "vue";
|
2
|
+
import { useRoute as Z } from "vue-router";
|
3
|
+
import { G as J, m as w, P as Y, U as i, X as ee, $ as K, W as te, r as M, A as le } from "./main-65efBfek.js";
|
4
|
+
const oe = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
|
11
5
|
/* @__PURE__ */ n("i", { class: "fa fa-user" })
|
12
6
|
], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
|
13
7
|
/* @__PURE__ */ n("i", { class: "fa fa-key" })
|
14
|
-
], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"],
|
8
|
+
], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], _e = /* @__PURE__ */ P({
|
15
9
|
__name: "Index",
|
16
|
-
setup(
|
17
|
-
let a = u({ id: "", secret: "" }),
|
10
|
+
setup(fe) {
|
11
|
+
let a = u({ id: "", secret: "" }), f = u("password"), s = u(!1), _ = u(!1), R = u(), V = u(), h = u(), x = Z(), F = {
|
18
12
|
id: [{
|
19
13
|
required: !0,
|
20
14
|
trigger: "blur",
|
@@ -23,33 +17,33 @@ const le = { class: "login-container" }, re = { class: "title-container" }, se =
|
|
23
17
|
}
|
24
18
|
}]
|
25
19
|
// secret: [{required: true, trigger: 'blur', validator: validateSecret}]
|
26
|
-
},
|
20
|
+
}, N = (t) => {
|
27
21
|
t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? s.value = !0 : s.value = !1), t.key == "CapsLock" && s.value == !0 && (s.value = !1);
|
28
22
|
}, B = () => {
|
29
|
-
|
23
|
+
f.value == "password" ? f.value = "" : f.value = "password", A(() => {
|
30
24
|
h.value.focus();
|
31
25
|
});
|
32
26
|
}, E = async (t) => {
|
33
27
|
_.value = !0, R.value.validate(async (e) => {
|
34
28
|
if (!e)
|
35
29
|
return _.value = !1, !1;
|
36
|
-
(await
|
37
|
-
te.getBackUrl() ?
|
30
|
+
(await K.sso.create(t)).login(a.value).then(({ data: m }) => {
|
31
|
+
te.getBackUrl() ? M.toBackUrl() : M.to("/");
|
38
32
|
}).finally(() => {
|
39
|
-
|
33
|
+
A(() => {
|
40
34
|
_.value = !1;
|
41
35
|
});
|
42
36
|
});
|
43
37
|
});
|
44
|
-
},
|
45
|
-
let e = await
|
46
|
-
return e.loginUrl(
|
47
|
-
},
|
48
|
-
|
49
|
-
|
38
|
+
}, O = async (t) => {
|
39
|
+
let e = await K.sso.create(t), r = x.query.return_url, m = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${r}`;
|
40
|
+
return e.loginUrl(le.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(m));
|
41
|
+
}, q = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
|
42
|
+
S(async () => {
|
43
|
+
J.setI18nTitle("common.login");
|
50
44
|
for (let t = 0; t < w.ssos.length; t++) {
|
51
45
|
let e = w.ssos[t];
|
52
|
-
e.loginUrl = await
|
46
|
+
e.loginUrl = await O(e.type);
|
53
47
|
}
|
54
48
|
y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
|
55
49
|
});
|
@@ -57,78 +51,78 @@ const le = { class: "login-container" }, re = { class: "title-container" }, se =
|
|
57
51
|
return D(() => x, (t) => {
|
58
52
|
debugger;
|
59
53
|
const e = t.query;
|
60
|
-
e &&
|
54
|
+
e && q(e);
|
61
55
|
}), (t, e) => {
|
62
|
-
const r = c("el-input"),
|
63
|
-
return d(), U("div",
|
64
|
-
g(
|
56
|
+
const r = c("el-input"), m = c("el-form-item"), b = c("el-tooltip"), I = c("el-button"), z = c("router-link"), H = c("el-form");
|
57
|
+
return d(), U("div", oe, [
|
58
|
+
g(H, {
|
65
59
|
ref_key: "loginFormRef",
|
66
60
|
ref: R,
|
67
61
|
autocomplete: "on",
|
68
62
|
"label-position": "left",
|
69
|
-
model:
|
70
|
-
rules:
|
63
|
+
model: l(a),
|
64
|
+
rules: l(F)
|
71
65
|
}, {
|
72
|
-
default:
|
66
|
+
default: p(() => [
|
73
67
|
n("div", re, [
|
74
|
-
n("h3", se, k(
|
68
|
+
n("h3", se, k(l(Y)("title")), 1)
|
75
69
|
]),
|
76
|
-
|
70
|
+
l(y) ? (d(), v(m, {
|
77
71
|
key: 0,
|
78
72
|
prop: "id"
|
79
73
|
}, {
|
80
|
-
default:
|
74
|
+
default: p(() => [
|
81
75
|
ne,
|
82
76
|
g(r, {
|
83
77
|
ref_key: "idRef",
|
84
78
|
ref: V,
|
85
|
-
placeholder:
|
79
|
+
placeholder: l(i)("common.username_or_email"),
|
86
80
|
name: "id",
|
87
81
|
type: "text",
|
88
82
|
tabindex: "1",
|
89
83
|
autocomplete: "on",
|
90
|
-
modelValue:
|
91
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
84
|
+
modelValue: l(a).id,
|
85
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => l(a).id = o)
|
92
86
|
}, null, 8, ["placeholder", "modelValue"])
|
93
87
|
]),
|
94
88
|
_: 1
|
95
89
|
})) : C("", !0),
|
96
|
-
|
90
|
+
l(y) ? (d(), v(b, {
|
97
91
|
key: 1,
|
98
92
|
content: "Caps lock is On",
|
99
93
|
placement: "right",
|
100
94
|
manual: "",
|
101
|
-
modelValue:
|
102
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
95
|
+
modelValue: l(s),
|
96
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => $(s) ? s.value = o : s = o)
|
103
97
|
}, {
|
104
|
-
default:
|
105
|
-
g(
|
106
|
-
default:
|
98
|
+
default: p(() => [
|
99
|
+
g(m, { prop: "secret" }, {
|
100
|
+
default: p(() => [
|
107
101
|
ae,
|
108
102
|
(d(), v(r, {
|
109
103
|
ref_key: "secretRef",
|
110
104
|
ref: h,
|
111
|
-
key:
|
112
|
-
type:
|
113
|
-
placeholder:
|
105
|
+
key: l(f),
|
106
|
+
type: l(f),
|
107
|
+
placeholder: l(i)("common.password"),
|
114
108
|
name: "secret",
|
115
109
|
tabindex: "2",
|
116
110
|
autocomplete: "on",
|
117
111
|
onKeyup: [
|
118
|
-
|
119
|
-
e[2] || (e[2] =
|
112
|
+
L(l(N), ["native"]),
|
113
|
+
e[2] || (e[2] = L((o) => l(E)("Bearer"), ["enter", "native"]))
|
120
114
|
],
|
121
|
-
onBlur: e[1] || (e[1] = (
|
122
|
-
modelValue:
|
123
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
115
|
+
onBlur: e[1] || (e[1] = (o) => $(s) ? s.value = !1 : s = !1),
|
116
|
+
modelValue: l(a).secret,
|
117
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => l(a).secret = o)
|
124
118
|
}, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
|
125
119
|
n("span", {
|
126
120
|
class: "btn-pwd",
|
127
121
|
onClick: e[4] || (e[4] = //@ts-ignore
|
128
|
-
(...
|
122
|
+
(...o) => l(B) && l(B)(...o))
|
129
123
|
}, [
|
130
124
|
n("i", {
|
131
|
-
class:
|
125
|
+
class: G(l(f) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
132
126
|
}, null, 2)
|
133
127
|
])
|
134
128
|
]),
|
@@ -137,28 +131,28 @@ const le = { class: "login-container" }, re = { class: "title-container" }, se =
|
|
137
131
|
]),
|
138
132
|
_: 1
|
139
133
|
}, 8, ["modelValue"])) : C("", !0),
|
140
|
-
|
134
|
+
l(y) ? (d(), v(I, {
|
141
135
|
key: 2,
|
142
136
|
type: "primary",
|
143
137
|
class: "btn-login",
|
144
|
-
loading:
|
145
|
-
onClick: e[6] || (e[6] =
|
138
|
+
loading: l(_),
|
139
|
+
onClick: e[6] || (e[6] = Q((o) => l(E)("Bearer"), ["prevent"]))
|
146
140
|
}, {
|
147
|
-
default:
|
148
|
-
|
141
|
+
default: p(() => [
|
142
|
+
T(k(l(i)("common.login")), 1)
|
149
143
|
]),
|
150
144
|
_: 1
|
151
145
|
}, 8, ["loading"])) : C("", !0),
|
152
146
|
n("div", ie, [
|
153
|
-
(d(!0), U(
|
154
|
-
href:
|
155
|
-
}, k(
|
156
|
-
g(
|
147
|
+
(d(!0), U(W, null, X(l(w).ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (d(), U("a", {
|
148
|
+
href: o.loginUrl
|
149
|
+
}, k(l(i)(o.text)), 9, ue))), 256)),
|
150
|
+
g(z, {
|
157
151
|
class: "btn-register",
|
158
152
|
to: "/register"
|
159
153
|
}, {
|
160
|
-
default:
|
161
|
-
|
154
|
+
default: p(() => [
|
155
|
+
T(k(l(i)("common.register")), 1)
|
162
156
|
]),
|
163
157
|
_: 1
|
164
158
|
})
|
@@ -168,12 +162,12 @@ const le = { class: "login-container" }, re = { class: "title-container" }, se =
|
|
168
162
|
}, 8, ["model", "rules"]),
|
169
163
|
n("div", {
|
170
164
|
class: "powered-by",
|
171
|
-
innerHTML:
|
165
|
+
innerHTML: l(i)("sys.powered_by")
|
172
166
|
}, null, 8, de)
|
173
167
|
]);
|
174
168
|
};
|
175
169
|
}
|
176
170
|
});
|
177
171
|
export {
|
178
|
-
|
172
|
+
_e as default
|
179
173
|
};
|