@ftlab/one-vue3 0.2.11 → 0.2.12
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 +8 -2
- 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/components.d.ts +0 -1
- package/dist/{CheckMessageDialog-13de033d.cjs → CheckMessageDialog-0db54f3d.cjs} +1 -1
- package/dist/{CheckMessageDialog-065cdd87.js → CheckMessageDialog-cc32dd0e.js} +167 -167
- package/dist/ftlOne.cjs +1 -1
- package/dist/ftlOne.js +1 -1
- package/dist/ftlOne.umd.cjs +3 -3
- package/dist/{index-20c01953.js → index-0c7e1f50.js} +14714 -14715
- package/dist/{index-0a777adb.cjs → index-e5e2a9ce.cjs} +56 -56
- package/dist/style.css +1 -1
- package/function/index.ts +4 -4
- package/function/info.ts +17 -17
- package/function/permission.ts +17 -17
- package/i18n/cn.json +16 -16
- package/i18n/en.json +16 -16
- package/i18n/fr.json +16 -16
- package/package.json +71 -71
- package/store/auth.js +63 -63
- package/store/index.js +4 -4
- package/store/lang.js +16 -16
- package/utils/date.ts +119 -119
- package/utils/storage.js +27 -27
|
@@ -1,167 +1,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 u = (
|
|
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, d as W, u as X, _ as Y, w as Z, c as ee, a as te, E as oe, e as ne, f as
|
|
30
|
-
import { defineComponent as
|
|
31
|
-
import "pinia";
|
|
32
|
-
const fe = Q({
|
|
33
|
-
direction: {
|
|
34
|
-
type: String,
|
|
35
|
-
values: ["horizontal", "vertical"],
|
|
36
|
-
default: "horizontal"
|
|
37
|
-
},
|
|
38
|
-
contentPosition: {
|
|
39
|
-
type: String,
|
|
40
|
-
values: ["left", "center", "right"],
|
|
41
|
-
default: "center"
|
|
42
|
-
},
|
|
43
|
-
borderStyle: {
|
|
44
|
-
type: W(String),
|
|
45
|
-
default: "solid"
|
|
46
|
-
}
|
|
47
|
-
}), ve =
|
|
48
|
-
name: "ElDivider"
|
|
49
|
-
}), ge = /* @__PURE__ */
|
|
50
|
-
props: fe,
|
|
51
|
-
setup(n) {
|
|
52
|
-
const t = n, e = X("divider"), i = k(() => e.cssVar({
|
|
53
|
-
"border-style": t.borderStyle
|
|
54
|
-
}));
|
|
55
|
-
return (l, u) => (m(),
|
|
56
|
-
class:
|
|
57
|
-
style: de(o(i)),
|
|
58
|
-
role: "separator"
|
|
59
|
-
}, [
|
|
60
|
-
l.$slots.default && l.direction !== "vertical" ? (m(),
|
|
61
|
-
key: 0,
|
|
62
|
-
class:
|
|
63
|
-
}, [
|
|
64
|
-
ce(l.$slots, "default")
|
|
65
|
-
], 2)) : I("v-if", !0)
|
|
66
|
-
], 6));
|
|
67
|
-
}
|
|
68
|
-
}));
|
|
69
|
-
var he = /* @__PURE__ */ Y(ge, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
|
|
70
|
-
const we = Z(he);
|
|
71
|
-
const ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */
|
|
72
|
-
__name: "CheckMessageDialog",
|
|
73
|
-
emits: ["preventHiddenDropdown"],
|
|
74
|
-
setup(n, { expose: t, emit: e }) {
|
|
75
|
-
const i = h(!1), l = $("authBaseUrl"), u = $("dialogI18n"), g = localStorage.getItem("token") || "", d = h(!1),
|
|
76
|
-
Authorization: `Bearer ${g}`
|
|
77
|
-
}, N = k(
|
|
78
|
-
() => `${l || ee.authBaseUrl || "https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`
|
|
79
|
-
), P = (r) => V(this, null, function* () {
|
|
80
|
-
try {
|
|
81
|
-
d.value = !0;
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
} catch (
|
|
85
|
-
console.log(
|
|
86
|
-
} finally {
|
|
87
|
-
d.value = !1;
|
|
88
|
-
}
|
|
89
|
-
}), x = k(
|
|
90
|
-
() =>
|
|
91
|
-
), z = (r) => {
|
|
92
|
-
r && window.open(r, "_blank");
|
|
93
|
-
};
|
|
94
|
-
return t({
|
|
95
|
-
open: (r) => {
|
|
96
|
-
P(r), i.value = !0;
|
|
97
|
-
}
|
|
98
|
-
}), (r,
|
|
99
|
-
const A = we, B = oe, H = ne, L =
|
|
100
|
-
return m(), w(j, {
|
|
101
|
-
center: "",
|
|
102
|
-
title: o(u).dialogTitleText,
|
|
103
|
-
modelValue: o(i),
|
|
104
|
-
"onUpdate:modelValue":
|
|
105
|
-
"append-to-body": "",
|
|
106
|
-
model: !1,
|
|
107
|
-
onClosed:
|
|
108
|
-
r.$emit("preventHiddenDropdown");
|
|
109
|
-
})
|
|
110
|
-
}, {
|
|
111
|
-
default: c(() => [
|
|
112
|
-
y("header", ye, f(o(
|
|
113
|
-
v(A),
|
|
114
|
-
pe(y("div", {
|
|
115
|
-
innerHTML: o(
|
|
116
|
-
}, null, 8, De), [
|
|
117
|
-
[q, o(d)]
|
|
118
|
-
]),
|
|
119
|
-
y("footer", {
|
|
120
|
-
class:
|
|
121
|
-
}, [
|
|
122
|
-
o(x) ? (m(), w(F, { key: 0 }, {
|
|
123
|
-
dropdown: c(() => [
|
|
124
|
-
v(L, null, {
|
|
125
|
-
default: c(() => [
|
|
126
|
-
(m(!0),
|
|
127
|
-
key: p.fileDownloadUrl,
|
|
128
|
-
onClick: () => z(p.fileDownloadUrl)
|
|
129
|
-
}, {
|
|
130
|
-
default: c(() => [
|
|
131
|
-
D(f(p.fileName), 1)
|
|
132
|
-
]),
|
|
133
|
-
_: 2
|
|
134
|
-
}, 1032, ["onClick"]))), 128))
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
})
|
|
138
|
-
]),
|
|
139
|
-
default: c(() => [
|
|
140
|
-
v(B, null, {
|
|
141
|
-
default: c(() => [
|
|
142
|
-
D(f(o(u).downloadText), 1)
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
})
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
})) : I("", !0),
|
|
149
|
-
v(B, {
|
|
150
|
-
onClick:
|
|
151
|
-
}, {
|
|
152
|
-
default: c(() => [
|
|
153
|
-
D(f(o(u).cancelButtonText), 1)
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
})
|
|
157
|
-
], 2)
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}, 8, ["title", "modelValue"]);
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
const Be = /* @__PURE__ */ re(ke, [["__scopeId", "data-v-
|
|
165
|
-
export {
|
|
166
|
-
Be as default
|
|
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 u = (s) => {
|
|
15
|
+
try {
|
|
16
|
+
d(e.next(s));
|
|
17
|
+
} catch (_) {
|
|
18
|
+
l(_);
|
|
19
|
+
}
|
|
20
|
+
}, g = (s) => {
|
|
21
|
+
try {
|
|
22
|
+
d(e.throw(s));
|
|
23
|
+
} catch (_) {
|
|
24
|
+
l(_);
|
|
25
|
+
}
|
|
26
|
+
}, d = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(u, g);
|
|
27
|
+
d((e = e.apply(n, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import { b as Q, d as W, u as X, _ as Y, w as Z, c as ee, a as te, E as oe, e as ne, f as se, g as ae, h as le, v as ie, i as re } from "./index-0c7e1f50.js";
|
|
30
|
+
import { defineComponent as E, computed as k, openBlock as m, createElementBlock as b, normalizeClass as C, unref as o, normalizeStyle as de, renderSlot as ce, createCommentVNode as I, ref as h, inject as $, createBlock as w, isRef as ue, withCtx as c, createElementVNode as y, toDisplayString as f, createVNode as v, withDirectives as pe, Fragment as me, renderList as _e, createTextVNode as D } from "vue";
|
|
31
|
+
import "pinia";
|
|
32
|
+
const fe = Q({
|
|
33
|
+
direction: {
|
|
34
|
+
type: String,
|
|
35
|
+
values: ["horizontal", "vertical"],
|
|
36
|
+
default: "horizontal"
|
|
37
|
+
},
|
|
38
|
+
contentPosition: {
|
|
39
|
+
type: String,
|
|
40
|
+
values: ["left", "center", "right"],
|
|
41
|
+
default: "center"
|
|
42
|
+
},
|
|
43
|
+
borderStyle: {
|
|
44
|
+
type: W(String),
|
|
45
|
+
default: "solid"
|
|
46
|
+
}
|
|
47
|
+
}), ve = E({
|
|
48
|
+
name: "ElDivider"
|
|
49
|
+
}), ge = /* @__PURE__ */ E(U(T({}, ve), {
|
|
50
|
+
props: fe,
|
|
51
|
+
setup(n) {
|
|
52
|
+
const t = n, e = X("divider"), i = k(() => e.cssVar({
|
|
53
|
+
"border-style": t.borderStyle
|
|
54
|
+
}));
|
|
55
|
+
return (l, u) => (m(), b("div", {
|
|
56
|
+
class: C([o(e).b(), o(e).m(l.direction)]),
|
|
57
|
+
style: de(o(i)),
|
|
58
|
+
role: "separator"
|
|
59
|
+
}, [
|
|
60
|
+
l.$slots.default && l.direction !== "vertical" ? (m(), b("div", {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: C([o(e).e("text"), o(e).is(l.contentPosition)])
|
|
63
|
+
}, [
|
|
64
|
+
ce(l.$slots, "default")
|
|
65
|
+
], 2)) : I("v-if", !0)
|
|
66
|
+
], 6));
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
var he = /* @__PURE__ */ Y(ge, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
|
|
70
|
+
const we = Z(he);
|
|
71
|
+
const ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */ E({
|
|
72
|
+
__name: "CheckMessageDialog",
|
|
73
|
+
emits: ["preventHiddenDropdown"],
|
|
74
|
+
setup(n, { expose: t, emit: e }) {
|
|
75
|
+
const i = h(!1), l = $("authBaseUrl"), u = $("dialogI18n"), g = localStorage.getItem("token") || "", d = h(!1), s = h({}), _ = {
|
|
76
|
+
Authorization: `Bearer ${g}`
|
|
77
|
+
}, N = k(
|
|
78
|
+
() => `${l || ee.authBaseUrl || "https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`
|
|
79
|
+
), P = (r) => V(this, null, function* () {
|
|
80
|
+
try {
|
|
81
|
+
d.value = !0;
|
|
82
|
+
const a = yield te.get(N.value, { headers: _, params: { msgId: r } });
|
|
83
|
+
a && a.data && (s.value = a.data);
|
|
84
|
+
} catch (a) {
|
|
85
|
+
console.log(a);
|
|
86
|
+
} finally {
|
|
87
|
+
d.value = !1;
|
|
88
|
+
}
|
|
89
|
+
}), x = k(
|
|
90
|
+
() => s.value.immAttachments && s.value.immAttachments.length !== 0
|
|
91
|
+
), z = (r) => {
|
|
92
|
+
r && window.open(r, "_blank");
|
|
93
|
+
};
|
|
94
|
+
return t({
|
|
95
|
+
open: (r) => {
|
|
96
|
+
P(r), i.value = !0;
|
|
97
|
+
}
|
|
98
|
+
}), (r, a) => {
|
|
99
|
+
const A = we, B = oe, H = ne, L = se, F = ae, j = le, q = ie;
|
|
100
|
+
return m(), w(j, {
|
|
101
|
+
center: "",
|
|
102
|
+
title: o(u).dialogTitleText,
|
|
103
|
+
modelValue: o(i),
|
|
104
|
+
"onUpdate:modelValue": a[1] || (a[1] = (p) => ue(i) ? i.value = p : null),
|
|
105
|
+
"append-to-body": "",
|
|
106
|
+
model: !1,
|
|
107
|
+
onClosed: a[2] || (a[2] = () => {
|
|
108
|
+
r.$emit("preventHiddenDropdown");
|
|
109
|
+
})
|
|
110
|
+
}, {
|
|
111
|
+
default: c(() => [
|
|
112
|
+
y("header", ye, f(o(s).title), 1),
|
|
113
|
+
v(A),
|
|
114
|
+
pe(y("div", {
|
|
115
|
+
innerHTML: o(s).content
|
|
116
|
+
}, null, 8, De), [
|
|
117
|
+
[q, o(d)]
|
|
118
|
+
]),
|
|
119
|
+
y("footer", {
|
|
120
|
+
class: C(["mt15", [o(x) ? "f-s-c" : "f-c-e"]])
|
|
121
|
+
}, [
|
|
122
|
+
o(x) ? (m(), w(F, { key: 0 }, {
|
|
123
|
+
dropdown: c(() => [
|
|
124
|
+
v(L, null, {
|
|
125
|
+
default: c(() => [
|
|
126
|
+
(m(!0), b(me, null, _e(o(s).immAttachments, (p) => (m(), w(H, {
|
|
127
|
+
key: p.fileDownloadUrl,
|
|
128
|
+
onClick: () => z(p.fileDownloadUrl)
|
|
129
|
+
}, {
|
|
130
|
+
default: c(() => [
|
|
131
|
+
D(f(p.fileName), 1)
|
|
132
|
+
]),
|
|
133
|
+
_: 2
|
|
134
|
+
}, 1032, ["onClick"]))), 128))
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
})
|
|
138
|
+
]),
|
|
139
|
+
default: c(() => [
|
|
140
|
+
v(B, null, {
|
|
141
|
+
default: c(() => [
|
|
142
|
+
D(f(o(u).downloadText), 1)
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
})) : I("", !0),
|
|
149
|
+
v(B, {
|
|
150
|
+
onClick: a[0] || (a[0] = (p) => i.value = !1)
|
|
151
|
+
}, {
|
|
152
|
+
default: c(() => [
|
|
153
|
+
D(f(o(u).cancelButtonText), 1)
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
})
|
|
157
|
+
], 2)
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["title", "modelValue"]);
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
const Be = /* @__PURE__ */ re(ke, [["__scopeId", "data-v-b6d5935c"]]);
|
|
165
|
+
export {
|
|
166
|
+
Be as default
|
|
167
|
+
};
|
package/dist/ftlOne.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-e5e2a9ce.cjs");require("vue");require("pinia");exports.FtlEntry=e.FtlEntry;exports.FtlMessage=e.index;exports.FtlNavbar=e.FtlNavbar;exports.FtlPasswordDialog=e.FtlPasswordDialog;exports.FtlSidebar=e.FtlSidebar;exports.default=e.FtlOne;
|
package/dist/ftlOne.js
CHANGED