@euflyapp/one-vue3 0.1.0
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 -0
- package/.prettierrc.cjs +18 -0
- package/CHANGELOG.md +69 -0
- package/README.md +61 -0
- package/assets/css/index.scss +25 -0
- package/assets/css/mixin.scss +142 -0
- package/assets/css/public.scss +176 -0
- package/assets/img/America.png +0 -0
- package/assets/img/China.png +0 -0
- package/assets/img/French.png +0 -0
- package/assets/img/Original.png +0 -0
- package/assets/img/Spanish.png +0 -0
- package/components.d.ts +38 -0
- package/dist/CheckMessageDialog-97104b25.js +167 -0
- package/dist/ftlOne.js +13 -0
- package/dist/index-d9ee9bef.js +12333 -0
- package/dist/store.js +112 -0
- package/dist/style.css +1 -0
- package/dist/utils-0eda3e43.js +17 -0
- package/dist/utils.js +828 -0
- package/dist/vuex.esm-bundler-2a047356.js +770 -0
- package/function/index.ts +4 -0
- package/function/info.ts +17 -0
- package/function/permission.ts +17 -0
- package/global.d.ts +63 -0
- package/i18n/cn.json +23 -0
- package/i18n/en.json +23 -0
- package/i18n/fr.json +23 -0
- package/package.json +74 -0
- package/store/index.js +12 -0
- package/store/modules/app.js +21 -0
- package/store/modules/auth.js +78 -0
- package/store/modules/lang.js +17 -0
- package/store2/auth.ts +66 -0
- package/store2/index.ts +7 -0
- package/store2/lang.ts +16 -0
|
@@ -0,0 +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 = (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 { defineComponent as E, computed as k, openBlock as m, createElementBlock as b, normalizeClass as C, 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 se, w as ae, c as le, a as ie, E as re, e as de, f as ce, g as ue, h as pe, v as me, i as _e } from "./index-d9ee9bef.js";
|
|
31
|
+
import "./utils-0eda3e43.js";
|
|
32
|
+
import "./vuex.esm-bundler-2a047356.js";
|
|
33
|
+
const fe = te({
|
|
34
|
+
direction: {
|
|
35
|
+
type: String,
|
|
36
|
+
values: ["horizontal", "vertical"],
|
|
37
|
+
default: "horizontal"
|
|
38
|
+
},
|
|
39
|
+
contentPosition: {
|
|
40
|
+
type: String,
|
|
41
|
+
values: ["left", "center", "right"],
|
|
42
|
+
default: "center"
|
|
43
|
+
},
|
|
44
|
+
borderStyle: {
|
|
45
|
+
type: oe(String),
|
|
46
|
+
default: "solid"
|
|
47
|
+
}
|
|
48
|
+
}), ve = E({
|
|
49
|
+
name: "ElDivider"
|
|
50
|
+
}), ge = /* @__PURE__ */ E(U(T({}, ve), {
|
|
51
|
+
props: fe,
|
|
52
|
+
setup(n) {
|
|
53
|
+
const t = n, e = ne("divider"), i = k(() => e.cssVar({
|
|
54
|
+
"border-style": t.borderStyle
|
|
55
|
+
}));
|
|
56
|
+
return (l, u) => (m(), b("div", {
|
|
57
|
+
class: C([o(e).b(), o(e).m(l.direction)]),
|
|
58
|
+
style: Q(o(i)),
|
|
59
|
+
role: "separator"
|
|
60
|
+
}, [
|
|
61
|
+
l.$slots.default && l.direction !== "vertical" ? (m(), b("div", {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: C([o(e).e("text"), o(e).is(l.contentPosition)])
|
|
64
|
+
}, [
|
|
65
|
+
W(l.$slots, "default")
|
|
66
|
+
], 2)) : I("v-if", !0)
|
|
67
|
+
], 6));
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
var he = /* @__PURE__ */ se(ge, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
|
|
71
|
+
const we = ae(he), 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 || le.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 ie.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 = re, H = de, L = ce, F = ue, j = pe, q = me;
|
|
100
|
+
return m(), w(j, {
|
|
101
|
+
center: "",
|
|
102
|
+
title: o(u).dialogTitleText,
|
|
103
|
+
modelValue: o(i),
|
|
104
|
+
"onUpdate:modelValue": a[1] || (a[1] = (p) => X(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
|
+
Y(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(Z, null, ee(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 Se = /* @__PURE__ */ _e(ke, [["__scopeId", "data-v-b6d5935c"]]);
|
|
165
|
+
export {
|
|
166
|
+
Se as default
|
|
167
|
+
};
|
package/dist/ftlOne.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { j as r, l as e, n as F, F as i, m, k as p, o as d } from "./index-d9ee9bef.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "./utils-0eda3e43.js";
|
|
4
|
+
import "./vuex.esm-bundler-2a047356.js";
|
|
5
|
+
export {
|
|
6
|
+
r as FtlEntry,
|
|
7
|
+
e as FtlMessage,
|
|
8
|
+
F as FtlMultipleChoose,
|
|
9
|
+
i as FtlNavbar,
|
|
10
|
+
m as FtlPasswordDialog,
|
|
11
|
+
p as FtlSidebar,
|
|
12
|
+
d as default
|
|
13
|
+
};
|