@ftlab/one-vue3 0.2.16 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +24 -24
- package/.prettierrc.cjs +17 -17
- package/CHANGELOG.md +131 -131
- package/README.md +61 -61
- package/assets/css/index.scss +25 -25
- package/assets/css/mixin.scss +142 -142
- package/assets/css/public.scss +175 -175
- package/dist/{CheckMessageDialog-407326a5.js → CheckMessageDialog-77c20697.js} +169 -167
- package/dist/ftlOne.js +15 -12
- package/dist/{index-5e51e1ba.js → index-99103fbf.js} +15034 -15112
- package/dist/lang-eedab336.js +57 -0
- package/dist/storage-9f2ae3ed.js +30 -0
- package/dist/store.js +9 -0
- package/dist/style.css +1 -1
- package/dist/utils-0eda3e43.js +17 -0
- package/dist/utils.js +475 -0
- package/function/index.ts +4 -4
- package/function/info.ts +17 -17
- package/function/permission.ts +17 -17
- package/i18n/cn.json +22 -22
- package/i18n/en.json +22 -22
- package/i18n/fr.json +22 -22
- package/package.json +79 -71
- package/dist/CheckMessageDialog-b44c5c90.cjs +0 -1
- package/dist/ftlOne.cjs +0 -1
- package/dist/ftlOne.umd.cjs +0 -57
- package/dist/index-419f4041.cjs +0 -57
- package/store/auth.js +0 -63
- package/store/index.js +0 -5
- package/store/lang.js +0 -16
- package/utils/date.ts +0 -119
- package/utils/storage.js +0 -27
- package/utils/utils.ts +0 -10
|
@@ -1,167 +1,169 @@
|
|
|
1
|
-
var R = Object.defineProperty, G = Object.defineProperties;
|
|
2
|
-
var J = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var S = Object.getOwnPropertySymbols;
|
|
4
|
-
var K = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var M = (n, t, e) => t in n ? R(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, T = (n, t) => {
|
|
6
|
-
for (var e in t || (t = {}))
|
|
7
|
-
K.call(t, e) && M(n, e, t[e]);
|
|
8
|
-
if (S)
|
|
9
|
-
for (var e of S(t))
|
|
10
|
-
O.call(t, e) && M(n, e, t[e]);
|
|
11
|
-
return n;
|
|
12
|
-
}, U = (n, t) => G(n, J(t));
|
|
13
|
-
var V = (n, t, e) => new Promise((i, l) => {
|
|
14
|
-
var
|
|
15
|
-
try {
|
|
16
|
-
d(e.next(
|
|
17
|
-
} catch (_) {
|
|
18
|
-
l(_);
|
|
19
|
-
}
|
|
20
|
-
}, g = (
|
|
21
|
-
try {
|
|
22
|
-
d(e.throw(
|
|
23
|
-
} catch (_) {
|
|
24
|
-
l(_);
|
|
25
|
-
}
|
|
26
|
-
}, d = (
|
|
27
|
-
d((e = e.apply(n, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import { b as Q,
|
|
30
|
-
import {
|
|
31
|
-
import "
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
o(x) ?
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
1
|
+
var R = Object.defineProperty, G = Object.defineProperties;
|
|
2
|
+
var J = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var S = Object.getOwnPropertySymbols;
|
|
4
|
+
var K = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var M = (n, t, e) => t in n ? R(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, T = (n, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
K.call(t, e) && M(n, e, t[e]);
|
|
8
|
+
if (S)
|
|
9
|
+
for (var e of S(t))
|
|
10
|
+
O.call(t, e) && M(n, e, t[e]);
|
|
11
|
+
return n;
|
|
12
|
+
}, U = (n, t) => G(n, J(t));
|
|
13
|
+
var V = (n, t, e) => new Promise((i, l) => {
|
|
14
|
+
var p = (a) => {
|
|
15
|
+
try {
|
|
16
|
+
d(e.next(a));
|
|
17
|
+
} catch (_) {
|
|
18
|
+
l(_);
|
|
19
|
+
}
|
|
20
|
+
}, g = (a) => {
|
|
21
|
+
try {
|
|
22
|
+
d(e.throw(a));
|
|
23
|
+
} catch (_) {
|
|
24
|
+
l(_);
|
|
25
|
+
}
|
|
26
|
+
}, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(p, g);
|
|
27
|
+
d((e = e.apply(n, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as b, computed as k, openBlock as m, createElementBlock as C, normalizeClass as E, unref as o, normalizeStyle as Q, renderSlot as W, createCommentVNode as I, ref as h, inject as $, createBlock as w, isRef as X, withCtx as c, createElementVNode as y, toDisplayString as f, createVNode as v, withDirectives as Y, Fragment as Z, renderList as ee, createTextVNode as D } from "vue";
|
|
30
|
+
import { b as te, d as oe, u as ne, _ as ae, w as se, c as le, a as ie, E as re, e as de, f as ce, g as pe, h as ue, v as me, i as _e } from "./index-99103fbf.js";
|
|
31
|
+
import "./utils-0eda3e43.js";
|
|
32
|
+
import "./lang-eedab336.js";
|
|
33
|
+
import "pinia";
|
|
34
|
+
import "./storage-9f2ae3ed.js";
|
|
35
|
+
const fe = te({
|
|
36
|
+
direction: {
|
|
37
|
+
type: String,
|
|
38
|
+
values: ["horizontal", "vertical"],
|
|
39
|
+
default: "horizontal"
|
|
40
|
+
},
|
|
41
|
+
contentPosition: {
|
|
42
|
+
type: String,
|
|
43
|
+
values: ["left", "center", "right"],
|
|
44
|
+
default: "center"
|
|
45
|
+
},
|
|
46
|
+
borderStyle: {
|
|
47
|
+
type: oe(String),
|
|
48
|
+
default: "solid"
|
|
49
|
+
}
|
|
50
|
+
}), ve = b({
|
|
51
|
+
name: "ElDivider"
|
|
52
|
+
}), ge = /* @__PURE__ */ b(U(T({}, ve), {
|
|
53
|
+
props: fe,
|
|
54
|
+
setup(n) {
|
|
55
|
+
const t = n, e = ne("divider"), i = k(() => e.cssVar({
|
|
56
|
+
"border-style": t.borderStyle
|
|
57
|
+
}));
|
|
58
|
+
return (l, p) => (m(), C("div", {
|
|
59
|
+
class: E([o(e).b(), o(e).m(l.direction)]),
|
|
60
|
+
style: Q(o(i)),
|
|
61
|
+
role: "separator"
|
|
62
|
+
}, [
|
|
63
|
+
l.$slots.default && l.direction !== "vertical" ? (m(), C("div", {
|
|
64
|
+
key: 0,
|
|
65
|
+
class: E([o(e).e("text"), o(e).is(l.contentPosition)])
|
|
66
|
+
}, [
|
|
67
|
+
W(l.$slots, "default")
|
|
68
|
+
], 2)) : I("v-if", !0)
|
|
69
|
+
], 6));
|
|
70
|
+
}
|
|
71
|
+
}));
|
|
72
|
+
var he = /* @__PURE__ */ ae(ge, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
|
|
73
|
+
const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */ b({
|
|
74
|
+
__name: "CheckMessageDialog",
|
|
75
|
+
emits: ["preventHiddenDropdown"],
|
|
76
|
+
setup(n, { expose: t, emit: e }) {
|
|
77
|
+
const i = h(!1), l = $("authBaseUrl"), p = $("dialogI18n"), g = localStorage.getItem("token") || "", d = h(!1), a = h({}), _ = {
|
|
78
|
+
Authorization: `Bearer ${g}`
|
|
79
|
+
}, N = k(
|
|
80
|
+
() => `${l || le.authBaseUrl || "https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`
|
|
81
|
+
), P = (r) => V(this, null, function* () {
|
|
82
|
+
try {
|
|
83
|
+
d.value = !0;
|
|
84
|
+
const s = yield ie.get(N.value, { headers: _, params: { msgId: r } });
|
|
85
|
+
s && s.data && (a.value = s.data);
|
|
86
|
+
} catch (s) {
|
|
87
|
+
console.log(s);
|
|
88
|
+
} finally {
|
|
89
|
+
d.value = !1;
|
|
90
|
+
}
|
|
91
|
+
}), x = k(
|
|
92
|
+
() => a.value.immAttachments && a.value.immAttachments.length !== 0
|
|
93
|
+
), z = (r) => {
|
|
94
|
+
r && window.open(r, "_blank");
|
|
95
|
+
};
|
|
96
|
+
return t({
|
|
97
|
+
open: (r) => {
|
|
98
|
+
P(r), i.value = !0;
|
|
99
|
+
}
|
|
100
|
+
}), (r, s) => {
|
|
101
|
+
const A = we, B = re, H = de, L = ce, F = pe, j = ue, q = me;
|
|
102
|
+
return m(), w(j, {
|
|
103
|
+
center: "",
|
|
104
|
+
title: o(p).dialogTitleText,
|
|
105
|
+
modelValue: o(i),
|
|
106
|
+
"onUpdate:modelValue": s[1] || (s[1] = (u) => X(i) ? i.value = u : null),
|
|
107
|
+
"append-to-body": "",
|
|
108
|
+
model: !1,
|
|
109
|
+
onClosed: s[2] || (s[2] = () => {
|
|
110
|
+
r.$emit("preventHiddenDropdown");
|
|
111
|
+
})
|
|
112
|
+
}, {
|
|
113
|
+
default: c(() => [
|
|
114
|
+
y("header", ye, f(o(a).title), 1),
|
|
115
|
+
v(A),
|
|
116
|
+
Y(y("div", {
|
|
117
|
+
innerHTML: o(a).content
|
|
118
|
+
}, null, 8, De), [
|
|
119
|
+
[q, o(d)]
|
|
120
|
+
]),
|
|
121
|
+
y("footer", {
|
|
122
|
+
class: E(["mt15", [o(x) ? "f-s-c" : "f-c-e"]])
|
|
123
|
+
}, [
|
|
124
|
+
o(x) ? (m(), w(F, { key: 0 }, {
|
|
125
|
+
dropdown: c(() => [
|
|
126
|
+
v(L, null, {
|
|
127
|
+
default: c(() => [
|
|
128
|
+
(m(!0), C(Z, null, ee(o(a).immAttachments, (u) => (m(), w(H, {
|
|
129
|
+
key: u.fileDownloadUrl,
|
|
130
|
+
onClick: () => z(u.fileDownloadUrl)
|
|
131
|
+
}, {
|
|
132
|
+
default: c(() => [
|
|
133
|
+
D(f(u.fileName), 1)
|
|
134
|
+
]),
|
|
135
|
+
_: 2
|
|
136
|
+
}, 1032, ["onClick"]))), 128))
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
})
|
|
140
|
+
]),
|
|
141
|
+
default: c(() => [
|
|
142
|
+
v(B, null, {
|
|
143
|
+
default: c(() => [
|
|
144
|
+
D(f(o(p).downloadText), 1)
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
})
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
})) : I("", !0),
|
|
151
|
+
v(B, {
|
|
152
|
+
onClick: s[0] || (s[0] = (u) => i.value = !1)
|
|
153
|
+
}, {
|
|
154
|
+
default: c(() => [
|
|
155
|
+
D(f(o(p).cancelButtonText), 1)
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
})
|
|
159
|
+
], 2)
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["title", "modelValue"]);
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
const Te = /* @__PURE__ */ _e(ke, [["__scopeId", "data-v-0003507a"]]);
|
|
167
|
+
export {
|
|
168
|
+
Te as default
|
|
169
|
+
};
|
package/dist/ftlOne.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import "vue";
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { j as e, l as m, n as p, F, m as d, k as b, o as f } from "./index-99103fbf.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "./utils-0eda3e43.js";
|
|
4
|
+
import "./lang-eedab336.js";
|
|
5
|
+
import "pinia";
|
|
6
|
+
import "./storage-9f2ae3ed.js";
|
|
7
|
+
export {
|
|
8
|
+
e as FtlEntry,
|
|
9
|
+
m as FtlMessage,
|
|
10
|
+
p as FtlMultipleChoose,
|
|
11
|
+
F as FtlNavbar,
|
|
12
|
+
d as FtlPasswordDialog,
|
|
13
|
+
b as FtlSidebar,
|
|
14
|
+
f as default
|
|
15
|
+
};
|