halo-pc 1.0.21 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-4S7jNdlM.js +200 -0
- package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-DQs1A7g2.js} +24 -18
- package/dist/Autocomplete-B9SJNrNq.js +53 -0
- package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BXwtzACg.js} +1 -1
- package/dist/Autocomplete-BZNDoWFj.js +54 -0
- package/dist/{CSharp-DGmv2biT.js → CSharp-aXdVWxPS.js} +1 -1
- package/dist/{Calender-dCiW7eIK.js → Calender-DSckLCh-.js} +4 -4
- package/dist/Callback-xlj8oj2-.js +26 -0
- package/dist/Cascader-Cwi5mukb.js +87 -0
- package/dist/Cascader-D1RbjsMs.js +47 -0
- package/dist/Checkbox-DFnVivE9.js +76 -0
- package/dist/{Checkbox-DklZD5ff.js → Checkbox-DtNMPsX4.js} +1 -1
- package/dist/{Code-DVZ9QWgE.js → Code-B2jpV8ek.js} +1 -1
- package/dist/Code-CEafFSlR.js +4 -0
- package/dist/Code-CTmcyEEu.js +60 -0
- package/dist/Code-DEOvcbgy.js +42 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-Cf1QzL0C.js +65 -0
- package/dist/Column-zAYqqGgI.js +74 -0
- package/dist/Comment-BZTVtxyP.js +104 -0
- package/dist/Compare-DMDVEK_Q.js +63 -0
- package/dist/Compare-Dy_YDKN2.js +43 -0
- package/dist/Copy-KA_-9J5g.js +49 -0
- package/dist/Custom-BpQzSpoK.js +57 -0
- package/dist/{DataExport-DAk1d4uG.js → DataExport-CU9MMI6C.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-DdczhsmD.js} +42 -37
- package/dist/{DataImport-BLOSIbQ2.js → DataImport-Dzq9P4hO.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-BdDLixcQ.js} +64 -60
- package/dist/{Date-D1KihBir.js → Date-BD5syhZL.js} +1 -1
- package/dist/Date-yqT5zILQ.js +43 -0
- package/dist/DateRange-CUQsaLxD.js +63 -0
- package/dist/DateTime-DcerQByM.js +44 -0
- package/dist/{DateTime-Dwg6aUf3.js → DateTime-hLc--zka.js} +1 -1
- package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-CSRaF4s1.js} +19 -13
- package/dist/Daterange-DY2i3jwP.js +63 -0
- package/dist/{Decimal-tv9vqaXk.js → Decimal-DY34o2Nh.js} +1 -1
- package/dist/Delete-CXnvlNw9.js +62 -0
- package/dist/{Detail-B2rtvufA.js → Detail-BYlDGKVP.js} +22 -17
- package/dist/Dictionary-DtXqTf_k.js +59 -0
- package/dist/Email-ofMPw09E.js +54 -0
- package/dist/{File-C63qevce.js → File-czipSVR0.js} +33 -28
- package/dist/Image-BwJO-IEo.js +9 -0
- package/dist/{Index-Cc_CDbUJ.js → Index-BSZ_tPMy.js} +1 -1
- package/dist/Index-Bwy9Q7qy.js +4 -0
- package/dist/{Index-Cev7Nudv.js → Index-CK25oTiA.js} +1 -1
- package/dist/Index-Ch5_Jqsf.js +4 -0
- package/dist/{Index-BD6O3A9N.js → Index-DIUPLGQ4.js} +25 -20
- package/dist/Index-DnNVMYOZ.js +4 -0
- package/dist/Index-j9BffBys.js +178 -0
- package/dist/{Index-B6Ec8rbl.js → Index-qOyfJhdG.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Bp4JjtSz.js} +21 -16
- package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js} +21 -16
- package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-CTTyswoD.js} +40 -35
- package/dist/{Install-CTAGNKPW.js → Install-qFVqjd7y.js} +29 -24
- package/dist/Int-BWcRpPzt.js +44 -0
- package/dist/Int-BYyavcrM.js +46 -0
- package/dist/List-BejoBArm.js +79 -0
- package/dist/Maintaince-Dlh2ICnO.js +20 -0
- package/dist/{Markdown-BJB6rQY8.js → Markdown-DymmFy2X.js} +1 -1
- package/dist/{Month-ui1XorBW.js → Month-C5_ANmVr.js} +1 -1
- package/dist/Month-Cf8e0cin.js +43 -0
- package/dist/Month-DaYaF2WK.js +44 -0
- package/dist/{Normal-Cf7kP6RU.js → Normal-NYkjZ2aA.js} +49 -45
- package/dist/Paging-DoQ_cXwj.js +99 -0
- package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BhwoSfFl.js} +31 -25
- package/dist/{PagingRow-eXCadgdO.js → PagingRow-BF6pUhoJ.js} +28 -22
- package/dist/QueryApi-CPQ67lb4.js +20 -0
- package/dist/{Racebar-ClXzi9hV.js → Racebar-BNPXg9aN.js} +42 -37
- package/dist/{Radio-llyoK7PI.js → Radio-wHwEjg6V.js} +1 -1
- package/dist/{Register-BaHhaZMu.js → Register-B4Bc8s-2.js} +70 -66
- package/dist/RichText-Cj5QP79L.js +47 -0
- package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-zNYx9YkN.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-CVxX9q-U.js} +1 -1
- package/dist/{SearchForm-CroUQ_3K.js → SearchForm-CJ3ru63a.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js} +37 -33
- package/dist/{Select-BtNeUq9h.js → Select-BDaDhqW7.js} +1 -1
- package/dist/Select-DFLY8nGY.js +86 -0
- package/dist/{Select-BYw63gZy.js → Select-WXibWkE0.js} +35 -30
- package/dist/{Single-CCVi3Pcj.js → Single-CmQgQl_u.js} +106 -102
- package/dist/{Statistic-g3nQvsbW.js → Statistic-BuU_GxqZ.js} +34 -30
- package/dist/{Stock-C6Fxo31l.js → Stock-B7NgfM19.js} +1 -1
- package/dist/{Stock-CNqLeSld.js → Stock-CDJ-AVw-.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js} +30 -25
- package/dist/{Switch-NMkH-rhl.js → Switch-DHf-0HZD.js} +1 -1
- package/dist/{Table-DpA4dO4P.js → Table-7P4KXMsy.js} +66 -61
- package/dist/{Table-Cdd_tPoL.js → Table-CN-KYO1R.js} +69 -66
- package/dist/Text-C05EoDxO.js +59 -0
- package/dist/{Text-DanSgaL9.js → Text-Da3ROjFC.js} +18 -12
- package/dist/Text-DqapEwUL.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DKX9_aI4.js +59 -0
- package/dist/TextLink-CQ_46bry.js +65 -0
- package/dist/{Textarea-HhP_VFJV.js → Textarea-B91EwIdj.js} +1 -1
- package/dist/Time-DxyveGcA.js +43 -0
- package/dist/Timeline-C1xOEcU4.js +59 -0
- package/dist/Tree-BK6p6Ake.js +122 -0
- package/dist/{Tree-Ck_7r3nf.js → Tree-DxJKaqc6.js} +101 -97
- package/dist/TreeNode-C84IoqkK.js +42 -0
- package/dist/{Update-DrmLFoty.js → Update-D5cXmHyf.js} +20 -15
- package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-DvrF1nBA.js} +23 -17
- package/dist/Upload-CK-ALAKV.js +72 -0
- package/dist/Upload-CRpCHz3m.js +150 -0
- package/dist/UploadApi-B-7WPVHD.js +20 -0
- package/dist/Year-BOL9ynRU.js +47 -0
- package/dist/{Year-RGAEzf_V.js → Year-CwaPwkLN.js} +1 -1
- package/dist/assets/@intlify-BISCQg1h.js +2189 -0
- package/dist/assets/@vue-aVYGocXp.js +93 -0
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -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/assets/vue-i18n-CLr3brPz.js +1670 -0
- package/dist/main-CnPQ_RYM.js +8948 -0
- package/dist/main.js +130 -130
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Article-D3N6eVpH.js +0 -195
- package/dist/Autocomplete-C1Q-qo5y.js +0 -49
- package/dist/Autocomplete-C_t_3Onz.js +0 -48
- package/dist/Callback-BcjLHYz6.js +0 -20
- package/dist/Cascader-BMs1Kw-s.js +0 -81
- package/dist/Cascader-BoZLMQjq.js +0 -41
- package/dist/Checkbox-DeuCkQ_E.js +0 -70
- package/dist/Code-CmB3ZGnM.js +0 -54
- package/dist/Code-Q9ETcIfA.js +0 -36
- package/dist/Code-hiW76EUm.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
- package/dist/Column-K0p0pVuf.js +0 -69
- package/dist/Comment-B_jDWUXE.js +0 -98
- package/dist/Compare-CziDSVLD.js +0 -37
- package/dist/Compare-DFDzyQIR.js +0 -57
- package/dist/Copy-gHXEFE58.js +0 -43
- package/dist/Custom-DS1OrDHT.js +0 -51
- package/dist/Date-BOrgXdKV.js +0 -37
- package/dist/DateRange-Clg_We_d.js +0 -57
- package/dist/DateTime-Ba-L9NIq.js +0 -38
- package/dist/Daterange-Gaj6hNOK.js +0 -57
- package/dist/Delete-HzVURBlh.js +0 -57
- package/dist/Dictionary-DKnp-UJn.js +0 -55
- package/dist/Email-CpOxaSSw.js +0 -48
- package/dist/Image-DRIunv3_.js +0 -9
- package/dist/Index-DSKuNKCT.js +0 -4
- package/dist/Index-QIBRYf1L.js +0 -4
- package/dist/Index-ZOfKMgat.js +0 -4
- package/dist/Index-bxLda8lZ.js +0 -174
- package/dist/Int-DmNjhEfK.js +0 -38
- package/dist/Int-nUzbSSOv.js +0 -41
- package/dist/List-gNI3y_wH.js +0 -74
- package/dist/Maintaince-pTASKuMA.js +0 -14
- package/dist/Month-CHfaIo8p.js +0 -38
- package/dist/Month-DgztqRaq.js +0 -37
- package/dist/Paging-CBgVct8q.js +0 -95
- package/dist/QueryApi-Wf86Sm6m.js +0 -13
- package/dist/RichText-Cc_jptgY.js +0 -41
- package/dist/Select-wxKjwxJj.js +0 -80
- package/dist/Text-DgZjeg-u.js +0 -4
- package/dist/Text-GuLK7BYX.js +0 -53
- package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
- package/dist/TextLink-B_Ur1pg0.js +0 -59
- package/dist/Time-CmyrAm3i.js +0 -37
- package/dist/Timeline-B85T2wBn.js +0 -53
- package/dist/Tree-OqvNLgYj.js +0 -118
- package/dist/TreeNode-Ba2f55wK.js +0 -37
- package/dist/Upload-D9HeSZCg.js +0 -68
- package/dist/Upload-DXADyB6r.js +0 -147
- package/dist/UploadApi-DAT-xdsM.js +0 -13
- package/dist/Year-Dx_qNPrz.js +0 -41
- package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
- package/dist/main-COiaaxGk.js +0 -3542
@@ -0,0 +1,178 @@
|
|
1
|
+
import { defineComponent as I, ref as u, onMounted as j, computed as D, watch as P, resolveComponent as c, openBlock as d, createElementBlock as R, createVNode as g, unref as o, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as U, isRef as L, withKeys as T, normalizeClass as Q, withModifiers as W, createTextVNode as $, Fragment as Z, renderList as G, nextTick as S } from "vue";
|
2
|
+
import { useRoute as J } from "vue-router";
|
3
|
+
import "./assets/underscore-B0BCaBxV.js";
|
4
|
+
import { i as X, z as w, W as Y, t as i, S as ee, R as F, U as te, r as K, x as oe } from "./main-CnPQ_RYM.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/clone-BZn0cTAu.js";
|
7
|
+
import "./assets/moment-h96o7c8I.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const le = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
|
10
|
+
/* @__PURE__ */ n("i", { class: "fa fa-user" })
|
11
|
+
], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
|
12
|
+
/* @__PURE__ */ n("i", { class: "fa fa-key" })
|
13
|
+
], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], we = /* @__PURE__ */ I({
|
14
|
+
__name: "Index",
|
15
|
+
setup(pe) {
|
16
|
+
let a = u({ id: "", secret: "" }), p = u("password"), s = u(!1), _ = u(!1), C = u(), V = u(), h = u(), x = J(), H = {
|
17
|
+
id: [{
|
18
|
+
required: !0,
|
19
|
+
trigger: "blur",
|
20
|
+
validator: (t, e, r) => {
|
21
|
+
e ? e.indexOf("@") > -1 ? ee.isEmail(e) ? r() : r(new Error("邮箱格式不正确")) : r() : r(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
|
22
|
+
}
|
23
|
+
}]
|
24
|
+
// secret: [{required: true, trigger: 'blur', validator: validateSecret}]
|
25
|
+
}, M = (t) => {
|
26
|
+
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);
|
27
|
+
}, B = () => {
|
28
|
+
p.value == "password" ? p.value = "" : p.value = "password", S(() => {
|
29
|
+
h.value.focus();
|
30
|
+
});
|
31
|
+
}, E = async (t) => {
|
32
|
+
_.value = !0, C.value.validate(async (e) => {
|
33
|
+
if (!e)
|
34
|
+
return _.value = !1, !1;
|
35
|
+
(await F.sso.create(t)).login(a.value).then(({ data: f }) => {
|
36
|
+
te.getBackUrl() ? K.toBackUrl() : K.to("/");
|
37
|
+
}).finally(() => {
|
38
|
+
S(() => {
|
39
|
+
_.value = !1;
|
40
|
+
});
|
41
|
+
});
|
42
|
+
});
|
43
|
+
}, N = async (t) => {
|
44
|
+
let e = await F.sso.create(t), r = x.query.return_url, f = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${r}`;
|
45
|
+
return e.loginUrl(oe.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(f));
|
46
|
+
}, O = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
|
47
|
+
j(async () => {
|
48
|
+
X.setI18nTitle("common.login");
|
49
|
+
for (let t = 0; t < w.ssos.length; t++) {
|
50
|
+
let e = w.ssos[t];
|
51
|
+
e.loginUrl = await N(e.type);
|
52
|
+
}
|
53
|
+
y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
|
54
|
+
});
|
55
|
+
let y = D(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
|
56
|
+
return P(() => x, (t) => {
|
57
|
+
debugger;
|
58
|
+
const e = t.query;
|
59
|
+
e && O(e);
|
60
|
+
}), (t, e) => {
|
61
|
+
const r = c("el-input"), f = c("el-form-item"), b = c("el-tooltip"), q = c("el-button"), z = c("router-link"), A = c("el-form");
|
62
|
+
return d(), R("div", le, [
|
63
|
+
g(A, {
|
64
|
+
ref_key: "loginFormRef",
|
65
|
+
ref: C,
|
66
|
+
autocomplete: "on",
|
67
|
+
"label-position": "left",
|
68
|
+
model: o(a),
|
69
|
+
rules: o(H)
|
70
|
+
}, {
|
71
|
+
default: m(() => [
|
72
|
+
n("div", re, [
|
73
|
+
n("h3", se, k(o(Y)("title")), 1)
|
74
|
+
]),
|
75
|
+
o(y) ? (d(), v(f, {
|
76
|
+
key: 0,
|
77
|
+
prop: "id"
|
78
|
+
}, {
|
79
|
+
default: m(() => [
|
80
|
+
ne,
|
81
|
+
g(r, {
|
82
|
+
ref_key: "idRef",
|
83
|
+
ref: V,
|
84
|
+
placeholder: o(i)("common.username_or_email"),
|
85
|
+
name: "id",
|
86
|
+
type: "text",
|
87
|
+
tabindex: "1",
|
88
|
+
autocomplete: "on",
|
89
|
+
modelValue: o(a).id,
|
90
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o(a).id = l)
|
91
|
+
}, null, 8, ["placeholder", "modelValue"])
|
92
|
+
]),
|
93
|
+
_: 1
|
94
|
+
})) : U("", !0),
|
95
|
+
o(y) ? (d(), v(b, {
|
96
|
+
key: 1,
|
97
|
+
content: "Caps lock is On",
|
98
|
+
placement: "right",
|
99
|
+
manual: "",
|
100
|
+
modelValue: o(s),
|
101
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => L(s) ? s.value = l : s = l)
|
102
|
+
}, {
|
103
|
+
default: m(() => [
|
104
|
+
g(f, { prop: "secret" }, {
|
105
|
+
default: m(() => [
|
106
|
+
ae,
|
107
|
+
(d(), v(r, {
|
108
|
+
ref_key: "secretRef",
|
109
|
+
ref: h,
|
110
|
+
key: o(p),
|
111
|
+
type: o(p),
|
112
|
+
placeholder: o(i)("common.password"),
|
113
|
+
name: "secret",
|
114
|
+
tabindex: "2",
|
115
|
+
autocomplete: "on",
|
116
|
+
onKeyup: [
|
117
|
+
T(o(M), ["native"]),
|
118
|
+
e[2] || (e[2] = T((l) => o(E)("Bearer"), ["enter", "native"]))
|
119
|
+
],
|
120
|
+
onBlur: e[1] || (e[1] = (l) => L(s) ? s.value = !1 : s = !1),
|
121
|
+
modelValue: o(a).secret,
|
122
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => o(a).secret = l)
|
123
|
+
}, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
|
124
|
+
n("span", {
|
125
|
+
class: "btn-pwd",
|
126
|
+
onClick: e[4] || (e[4] = //@ts-ignore
|
127
|
+
(...l) => o(B) && o(B)(...l))
|
128
|
+
}, [
|
129
|
+
n("i", {
|
130
|
+
class: Q(o(p) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
131
|
+
}, null, 2)
|
132
|
+
])
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
})
|
136
|
+
]),
|
137
|
+
_: 1
|
138
|
+
}, 8, ["modelValue"])) : U("", !0),
|
139
|
+
o(y) ? (d(), v(q, {
|
140
|
+
key: 2,
|
141
|
+
type: "primary",
|
142
|
+
class: "btn-login",
|
143
|
+
loading: o(_),
|
144
|
+
onClick: e[6] || (e[6] = W((l) => o(E)("Bearer"), ["prevent"]))
|
145
|
+
}, {
|
146
|
+
default: m(() => [
|
147
|
+
$(k(o(i)("common.login")), 1)
|
148
|
+
]),
|
149
|
+
_: 1
|
150
|
+
}, 8, ["loading"])) : U("", !0),
|
151
|
+
n("div", ie, [
|
152
|
+
(d(!0), R(Z, null, G(o(w).ssos.filter((l) => l.type.toUpperCase() != "BEARER"), (l) => (d(), R("a", {
|
153
|
+
href: l.loginUrl
|
154
|
+
}, k(o(i)(l.text)), 9, ue))), 256)),
|
155
|
+
g(z, {
|
156
|
+
class: "btn-register",
|
157
|
+
to: "/register"
|
158
|
+
}, {
|
159
|
+
default: m(() => [
|
160
|
+
$(k(o(i)("common.register")), 1)
|
161
|
+
]),
|
162
|
+
_: 1
|
163
|
+
})
|
164
|
+
])
|
165
|
+
]),
|
166
|
+
_: 1
|
167
|
+
}, 8, ["model", "rules"]),
|
168
|
+
n("div", {
|
169
|
+
class: "powered-by",
|
170
|
+
innerHTML: o(i)("sys.powered_by")
|
171
|
+
}, null, 8, de)
|
172
|
+
]);
|
173
|
+
};
|
174
|
+
}
|
175
|
+
});
|
176
|
+
export {
|
177
|
+
we as default
|
178
|
+
};
|
@@ -1,9 +1,14 @@
|
|
1
|
-
import { defineComponent as k, toRefs as D, ref as N, openBlock as
|
2
|
-
import "./assets/
|
3
|
-
import
|
1
|
+
import { defineComponent as k, toRefs as D, ref as N, openBlock as s, createElementBlock as B, Fragment as L, createVNode as R, unref as e, createBlock as w, resolveDynamicComponent as E, withCtx as P, createElementVNode as V, toDisplayString as $ } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { q } from "./main-CnPQ_RYM.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
4
9
|
import "vue-router";
|
5
10
|
import "./assets/intro.js-DxWjEdp_.js";
|
6
|
-
const
|
11
|
+
const F = { class: "not-support" }, W = /* @__PURE__ */ k({
|
7
12
|
__name: "Index",
|
8
13
|
props: {
|
9
14
|
searchData: {},
|
@@ -15,8 +20,8 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
15
20
|
set: {}
|
16
21
|
},
|
17
22
|
emits: ["navigate", "sort", "search", "page-change", "size-change", "succeed", "close", "layout-change"],
|
18
|
-
setup(c, { expose:
|
19
|
-
let o =
|
23
|
+
setup(c, { expose: i, emit: u }) {
|
24
|
+
let o = u, g = c, { module: m, schema: h, table: r, layout: l, next: p, set: d, searchData: y } = D(g), n = N(), f = (a, t) => {
|
20
25
|
o("navigate", a, t);
|
21
26
|
}, C = (a, t) => {
|
22
27
|
o("sort", a, t);
|
@@ -33,7 +38,7 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
33
38
|
}, S = (a) => {
|
34
39
|
o("layout-change", a);
|
35
40
|
};
|
36
|
-
return
|
41
|
+
return i({ resize: (a) => {
|
37
42
|
if (!n.value || !n.value.resize)
|
38
43
|
return !1;
|
39
44
|
n.value.resize(a);
|
@@ -41,18 +46,18 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
41
46
|
if (!n.value || !n.value.keyboard)
|
42
47
|
return !1;
|
43
48
|
n.value.keyboard(a, t);
|
44
|
-
} }), (a, t) => (
|
45
|
-
R(e(
|
49
|
+
} }), (a, t) => (s(), B(L, null, [
|
50
|
+
R(e(q), {
|
46
51
|
layout: e(l),
|
47
|
-
table: e(
|
52
|
+
table: e(r),
|
48
53
|
onLayoutChange: e(S)
|
49
54
|
}, null, 8, ["layout", "table", "onLayoutChange"]),
|
50
|
-
(
|
55
|
+
(s(), w(E(`paging-${e(l).type.toLowerCase()}`), {
|
51
56
|
ref_key: "pagingRef",
|
52
57
|
ref: n,
|
53
|
-
module: e(
|
54
|
-
schema: e(
|
55
|
-
table: e(
|
58
|
+
module: e(m),
|
59
|
+
schema: e(h),
|
60
|
+
table: e(r),
|
56
61
|
layout: e(l),
|
57
62
|
next: e(p),
|
58
63
|
set: e(d),
|
@@ -66,7 +71,7 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
66
71
|
onClose: e(z)
|
67
72
|
}, {
|
68
73
|
default: P(() => [
|
69
|
-
V("div",
|
74
|
+
V("div", F, "未支持的分页布局方式:" + $(e(l).type), 1)
|
70
75
|
]),
|
71
76
|
_: 1
|
72
77
|
}, 40, ["module", "schema", "table", "layout", "next", "set", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onSucceed", "onClose"]))
|
@@ -74,5 +79,5 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
74
79
|
}
|
75
80
|
});
|
76
81
|
export {
|
77
|
-
|
82
|
+
W as _
|
78
83
|
};
|
@@ -1,9 +1,14 @@
|
|
1
|
-
import { defineComponent as x, toRefs as E, ref as R, onMounted as k, openBlock as u, createElementBlock as z, Fragment as B, createVNode as L, unref as e, createBlock as S, resolveDynamicComponent as D, withCtx as N, createElementVNode as
|
2
|
-
import
|
3
|
-
import
|
1
|
+
import { defineComponent as x, toRefs as E, ref as R, onMounted as k, openBlock as u, createElementBlock as z, Fragment as B, createVNode as L, unref as e, createBlock as S, resolveDynamicComponent as D, withCtx as N, createElementVNode as V, toDisplayString as $ } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { q, t as F } from "./main-CnPQ_RYM.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
4
9
|
import "vue-router";
|
5
10
|
import "./assets/intro.js-DxWjEdp_.js";
|
6
|
-
const I = { class: "not-support" },
|
11
|
+
const I = { class: "not-support" }, T = /* @__PURE__ */ x({
|
7
12
|
__name: "Index",
|
8
13
|
props: {
|
9
14
|
route: {},
|
@@ -16,8 +21,8 @@ const I = { class: "not-support" }, H = /* @__PURE__ */ x({
|
|
16
21
|
set: {}
|
17
22
|
},
|
18
23
|
emits: ["layout-change", "row-edit", "change", "submit"],
|
19
|
-
setup(
|
20
|
-
let o = m,
|
24
|
+
setup(i, { expose: s, emit: m }) {
|
25
|
+
let o = m, p = i, { module: d, schema: c, table: l, layout: a, next: y, set: h } = E(p), r = R(), f = (t) => {
|
21
26
|
o("layout-change", t);
|
22
27
|
}, g = (t, n, w) => {
|
23
28
|
o("row-edit", t, n, w);
|
@@ -27,23 +32,23 @@ const I = { class: "not-support" }, H = /* @__PURE__ */ x({
|
|
27
32
|
o("submit", t);
|
28
33
|
}, v = (t) => {
|
29
34
|
}, C = (t) => {
|
30
|
-
if (!
|
35
|
+
if (!r.value || !r.value.resize)
|
31
36
|
return !1;
|
32
|
-
|
37
|
+
r.value.resize(t);
|
33
38
|
};
|
34
39
|
return k(() => {
|
35
|
-
}),
|
36
|
-
L(e(
|
40
|
+
}), s({ update: v, resize: C }), (t, n) => (u(), z(B, null, [
|
41
|
+
L(e(q), {
|
37
42
|
layout: e(a),
|
38
|
-
table: e(
|
43
|
+
table: e(l),
|
39
44
|
onLayoutChange: e(f)
|
40
45
|
}, null, 8, ["layout", "table", "onLayoutChange"]),
|
41
46
|
(u(), S(D(`update-${e(a).type.toLowerCase()}`), {
|
42
47
|
ref_key: "layoutRef",
|
43
|
-
ref:
|
44
|
-
module: e(
|
48
|
+
ref: r,
|
49
|
+
module: e(d),
|
45
50
|
schema: e(c),
|
46
|
-
table: e(
|
51
|
+
table: e(l),
|
47
52
|
layout: e(a),
|
48
53
|
next: e(y),
|
49
54
|
set: e(h),
|
@@ -54,7 +59,7 @@ const I = { class: "not-support" }, H = /* @__PURE__ */ x({
|
|
54
59
|
onSubmit: e(b)
|
55
60
|
}, {
|
56
61
|
default: N(() => [
|
57
|
-
|
62
|
+
V("div", I, $(e(F)("single.not_supported_layout", e(a).type)), 1)
|
58
63
|
]),
|
59
64
|
_: 1
|
60
65
|
}, 40, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"]))
|
@@ -62,5 +67,5 @@ const I = { class: "not-support" }, H = /* @__PURE__ */ x({
|
|
62
67
|
}
|
63
68
|
});
|
64
69
|
export {
|
65
|
-
|
70
|
+
T as _
|
66
71
|
};
|
@@ -1,9 +1,14 @@
|
|
1
|
-
import { defineComponent as E, defineAsyncComponent as I, toRefs as
|
2
|
-
import
|
3
|
-
|
1
|
+
import { defineComponent as E, defineAsyncComponent as I, toRefs as z, ref as A, computed as k, resolveComponent as w, openBlock as n, createElementBlock as _, Fragment as g, unref as e, createBlock as h, withCtx as d, createElementVNode as x, createVNode as v, resolveDynamicComponent as F, toDisplayString as C, createTextVNode as H, createCommentVNode as U } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import { S as $, t as j } from "./main-CnPQ_RYM.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
const q = { class: "text-popover" }, G = {
|
4
9
|
key: 2,
|
5
10
|
class: "control-operation"
|
6
|
-
},
|
11
|
+
}, W = /* @__PURE__ */ E({
|
7
12
|
__name: "Index",
|
8
13
|
props: {
|
9
14
|
schema: {},
|
@@ -15,12 +20,12 @@ const j = { class: "text-popover" }, q = {
|
|
15
20
|
},
|
16
21
|
emits: ["submit", "change"],
|
17
22
|
setup(V, { emit: B }) {
|
18
|
-
let y = I(() => import("./Index-
|
19
|
-
},
|
23
|
+
let y = I(() => import("./Index-DIUPLGQ4.js")), N = B, R = V, { schema: a, table: i, field: t, set: c, row: o, config: l } = z(R), m = A(), S = () => {
|
24
|
+
}, D = (r) => {
|
20
25
|
N("submit", r);
|
21
26
|
}, b = k(() => {
|
22
|
-
var
|
23
|
-
if ((
|
27
|
+
var p, f;
|
28
|
+
if ((f = (p = l == null ? void 0 : l.value) == null ? void 0 : p.control) != null && f.type)
|
24
29
|
return l.value.control.type;
|
25
30
|
let r = t.value.control;
|
26
31
|
if (r.typeBy != null) {
|
@@ -29,26 +34,26 @@ const j = { class: "text-popover" }, q = {
|
|
29
34
|
return u;
|
30
35
|
}
|
31
36
|
return r.type;
|
32
|
-
}), T = k(() => `control-${
|
33
|
-
return (r,
|
34
|
-
const
|
37
|
+
}), T = k(() => `control-${$.getDashName(b.value)}`);
|
38
|
+
return (r, s) => {
|
39
|
+
const p = w("el-popover"), f = w("el-link");
|
35
40
|
return n(), _(g, null, [
|
36
41
|
e(t).control.textualize ? (n(), _(g, { key: 0 }, [
|
37
|
-
e(t).control.popover ? (n(), h(
|
42
|
+
e(t).control.popover ? (n(), h(p, {
|
38
43
|
key: 0,
|
39
44
|
trigger: "hover",
|
40
45
|
placement: "top",
|
41
46
|
width: e(t).control.popover.width
|
42
47
|
}, {
|
43
48
|
reference: d(() => [
|
44
|
-
x("div",
|
49
|
+
x("div", q, [
|
45
50
|
v(e(y), {
|
46
51
|
ref_key: "controlRef",
|
47
|
-
ref:
|
52
|
+
ref: m,
|
48
53
|
schema: e(a),
|
49
|
-
table: e(
|
54
|
+
table: e(i),
|
50
55
|
field: e(t),
|
51
|
-
set: e(
|
56
|
+
set: e(c),
|
52
57
|
row: e(o),
|
53
58
|
config: e(l)
|
54
59
|
}, null, 8, ["schema", "table", "field", "set", "row", "config"])
|
@@ -57,11 +62,11 @@ const j = { class: "text-popover" }, q = {
|
|
57
62
|
default: d(() => [
|
58
63
|
v(e(y), {
|
59
64
|
ref_key: "controlRef",
|
60
|
-
ref:
|
65
|
+
ref: m,
|
61
66
|
schema: e(a),
|
62
|
-
table: e(
|
67
|
+
table: e(i),
|
63
68
|
field: e(t),
|
64
|
-
set: e(
|
69
|
+
set: e(c),
|
65
70
|
row: e(o),
|
66
71
|
config: e(l)
|
67
72
|
}, null, 8, ["schema", "table", "field", "set", "row", "config"])
|
@@ -70,48 +75,48 @@ const j = { class: "text-popover" }, q = {
|
|
70
75
|
}, 8, ["width"])) : (n(), h(e(y), {
|
71
76
|
key: 1,
|
72
77
|
ref_key: "controlRef",
|
73
|
-
ref:
|
78
|
+
ref: m,
|
74
79
|
schema: e(a),
|
75
|
-
table: e(
|
80
|
+
table: e(i),
|
76
81
|
field: e(t),
|
77
|
-
set: e(
|
82
|
+
set: e(c),
|
78
83
|
row: e(o),
|
79
84
|
config: e(l)
|
80
85
|
}, null, 8, ["schema", "table", "field", "set", "row", "config"]))
|
81
|
-
], 64)) : (n(), h(
|
86
|
+
], 64)) : (n(), h(F(e(T)), {
|
82
87
|
key: 1,
|
83
88
|
ref_key: "controlRef",
|
84
|
-
ref:
|
89
|
+
ref: m,
|
85
90
|
schema: e(a),
|
86
|
-
table: e(
|
91
|
+
table: e(i),
|
87
92
|
field: e(t),
|
88
|
-
set: e(
|
93
|
+
set: e(c),
|
89
94
|
row: e(o),
|
90
|
-
onSubmit: e(
|
91
|
-
onClear: e(
|
95
|
+
onSubmit: e(D),
|
96
|
+
onClear: e(S),
|
92
97
|
modelValue: e(o)[e(t).name],
|
93
|
-
"onUpdate:modelValue":
|
98
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => e(o)[e(t).name] = u)
|
94
99
|
}, {
|
95
100
|
default: d(() => [
|
96
|
-
x("div", null, C(e(
|
101
|
+
x("div", null, C(e(j)("common.unsupported_control", e(b))), 1)
|
97
102
|
]),
|
98
103
|
_: 1
|
99
104
|
}, 40, ["schema", "table", "field", "set", "row", "onSubmit", "onClear", "modelValue"])),
|
100
|
-
e(t).operation ? (n(), _("div",
|
101
|
-
v(
|
105
|
+
e(t).operation ? (n(), _("div", G, [
|
106
|
+
v(f, {
|
102
107
|
type: "primary",
|
103
108
|
underline: !1
|
104
109
|
}, {
|
105
110
|
default: d(() => [
|
106
|
-
|
111
|
+
H(C(e(t).operation.name), 1)
|
107
112
|
]),
|
108
113
|
_: 1
|
109
114
|
})
|
110
|
-
])) :
|
115
|
+
])) : U("", !0)
|
111
116
|
], 64);
|
112
117
|
};
|
113
118
|
}
|
114
119
|
});
|
115
120
|
export {
|
116
|
-
|
121
|
+
W as _
|
117
122
|
};
|
@@ -1,15 +1,20 @@
|
|
1
|
-
import { defineComponent as k, ref as
|
2
|
-
import
|
3
|
-
import
|
1
|
+
import { defineComponent as k, ref as s, onMounted as C, resolveComponent as r, openBlock as p, createBlock as f, unref as l, withCtx as t, createTextVNode as c, createVNode as a, createElementBlock as v, Fragment as M, renderList as N, createElementVNode as h, toDisplayString as x, createCommentVNode as B } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { J as T, h as U } from "./main-CnPQ_RYM.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
4
9
|
import "vue-router";
|
5
10
|
import "./assets/intro.js-DxWjEdp_.js";
|
6
|
-
const
|
11
|
+
const w = { class: "option-text" }, E = {
|
7
12
|
key: 0,
|
8
13
|
class: "option-suffix"
|
9
|
-
},
|
14
|
+
}, G = /* @__PURE__ */ k({
|
10
15
|
__name: "Install",
|
11
16
|
setup(O) {
|
12
|
-
let o =
|
17
|
+
let o = s({ name: null, type: "SqlServer", conn: null }), u = s(!1), d = s(), y = s([
|
13
18
|
{ value: "SqlServer", text: "SqlServer" },
|
14
19
|
{ value: "MySql", text: "MySql" },
|
15
20
|
{ value: "Mongo", text: "Mongo" },
|
@@ -17,19 +22,19 @@ const E = { class: "option-text" }, L = {
|
|
17
22
|
{ value: "Oracle", text: "Oracle" },
|
18
23
|
{ value: "Trino", text: "Trino" }
|
19
24
|
]), V = () => {
|
20
|
-
u.value = !0,
|
21
|
-
if (!
|
25
|
+
u.value = !0, d.value.validate((_, n) => {
|
26
|
+
if (!_)
|
22
27
|
return u.value = !1, !1;
|
23
|
-
U.post("/app/install", o.value).then(({ data:
|
28
|
+
U.post("/app/install", o.value).then(({ data: i }) => {
|
24
29
|
}).finally(() => {
|
25
30
|
u.value = !1;
|
26
31
|
});
|
27
32
|
});
|
28
33
|
};
|
29
34
|
return C(() => {
|
30
|
-
}), (
|
31
|
-
const
|
32
|
-
return
|
35
|
+
}), (_, n) => {
|
36
|
+
const i = r("el-input"), m = r("el-form-item"), S = r("el-option"), g = r("el-select"), q = r("el-button"), b = r("el-form");
|
37
|
+
return p(), f(l(T), {
|
33
38
|
class: "ha-install",
|
34
39
|
title: "数据库信息"
|
35
40
|
}, {
|
@@ -39,18 +44,18 @@ const E = { class: "option-text" }, L = {
|
|
39
44
|
default: t(() => [
|
40
45
|
a(b, {
|
41
46
|
ref_key: "formRef",
|
42
|
-
ref:
|
47
|
+
ref: d,
|
43
48
|
model: l(o),
|
44
49
|
"label-width": "80px"
|
45
50
|
}, {
|
46
51
|
default: t(() => [
|
47
|
-
a(
|
52
|
+
a(m, {
|
48
53
|
label: "名称",
|
49
54
|
prop: "name",
|
50
55
|
rules: [{ required: !0, message: "数据库名不能为空" }]
|
51
56
|
}, {
|
52
57
|
default: t(() => [
|
53
|
-
a(
|
58
|
+
a(i, {
|
54
59
|
type: "text",
|
55
60
|
modelValue: l(o).name,
|
56
61
|
"onUpdate:modelValue": n[0] || (n[0] = (e) => l(o).name = e)
|
@@ -58,25 +63,25 @@ const E = { class: "option-text" }, L = {
|
|
58
63
|
]),
|
59
64
|
_: 1
|
60
65
|
}),
|
61
|
-
a(
|
66
|
+
a(m, {
|
62
67
|
label: "类型",
|
63
68
|
prop: "type",
|
64
69
|
rules: [{ required: !0, message: "数据库类型不能为空" }]
|
65
70
|
}, {
|
66
71
|
default: t(() => [
|
67
|
-
a(
|
72
|
+
a(g, {
|
68
73
|
modelValue: l(o).type,
|
69
74
|
"onUpdate:modelValue": n[1] || (n[1] = (e) => l(o).type = e)
|
70
75
|
}, {
|
71
76
|
default: t(() => [
|
72
|
-
(
|
77
|
+
(p(!0), v(M, null, N(l(y), (e) => (p(), f(S, {
|
73
78
|
value: e.value,
|
74
79
|
label: e.text + (e.value ? "(" + e.value + ")" : ""),
|
75
80
|
key: `${e.value}`
|
76
81
|
}, {
|
77
82
|
default: t(() => [
|
78
|
-
|
79
|
-
e.value ? (
|
83
|
+
h("span", w, x(e.text), 1),
|
84
|
+
e.value ? (p(), v("span", E, "(" + x(e.value) + ")", 1)) : B("", !0)
|
80
85
|
]),
|
81
86
|
_: 2
|
82
87
|
}, 1032, ["value", "label"]))), 128))
|
@@ -86,13 +91,13 @@ const E = { class: "option-text" }, L = {
|
|
86
91
|
]),
|
87
92
|
_: 1
|
88
93
|
}),
|
89
|
-
a(
|
94
|
+
a(m, {
|
90
95
|
label: "连接串",
|
91
96
|
prop: "conn",
|
92
97
|
rules: [{ required: !0, message: "数据库连接串不能为空" }]
|
93
98
|
}, {
|
94
99
|
default: t(() => [
|
95
|
-
a(
|
100
|
+
a(i, {
|
96
101
|
type: "textarea",
|
97
102
|
modelValue: l(o).conn,
|
98
103
|
"onUpdate:modelValue": n[2] || (n[2] = (e) => l(o).conn = e)
|
@@ -100,7 +105,7 @@ const E = { class: "option-text" }, L = {
|
|
100
105
|
]),
|
101
106
|
_: 1
|
102
107
|
}),
|
103
|
-
a(
|
108
|
+
a(m, null, {
|
104
109
|
default: t(() => [
|
105
110
|
a(q, {
|
106
111
|
type: "primary",
|
@@ -125,5 +130,5 @@ const E = { class: "option-text" }, L = {
|
|
125
130
|
}
|
126
131
|
});
|
127
132
|
export {
|
128
|
-
|
133
|
+
G as default
|
129
134
|
};
|