@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/dist/store.js ADDED
@@ -0,0 +1,112 @@
1
+ var S = Object.defineProperty, g = Object.defineProperties;
2
+ var E = Object.getOwnPropertyDescriptors;
3
+ var o = Object.getOwnPropertySymbols;
4
+ var c = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
5
+ var s = (e, a, t) => a in e ? S(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, l = (e, a) => {
6
+ for (var t in a || (a = {}))
7
+ c.call(a, t) && s(e, t, a[t]);
8
+ if (o)
9
+ for (var t of o(a))
10
+ _.call(a, t) && s(e, t, a[t]);
11
+ return e;
12
+ }, u = (e, a) => g(e, E(a));
13
+ import { c as T } from "./vuex.esm-bundler-2a047356.js";
14
+ import "vue";
15
+ const N = {
16
+ namespaced: !0,
17
+ state: () => ({
18
+ language: localStorage.getItem("language") || "cn"
19
+ }),
20
+ getters: {
21
+ language(e) {
22
+ return e.language;
23
+ }
24
+ },
25
+ mutations: {
26
+ SET_LANG(e, a) {
27
+ e.language = a;
28
+ }
29
+ },
30
+ actions: {
31
+ setLocalLang({ commit: e }, a) {
32
+ e("SET_LANG", a);
33
+ }
34
+ }
35
+ }, n = localStorage.getItem("auth") ? JSON.parse(localStorage.getItem("auth")) : {};
36
+ function r(e) {
37
+ return e.map((a) => (a.children && a.children.length && (a.children = r(a.children)), u(l({}, a), {
38
+ or: a.name
39
+ })));
40
+ }
41
+ const R = {
42
+ namespaced: !0,
43
+ state: () => ({
44
+ userInfo: n || {},
45
+ username: n.username || "",
46
+ owner: n.owner || "",
47
+ roles: n.roles || [],
48
+ menus: [],
49
+ resources: []
50
+ }),
51
+ getters: {
52
+ auth: (e) => e.userInfo
53
+ },
54
+ mutations: {
55
+ SET_NAME(e, a) {
56
+ e.username = a;
57
+ },
58
+ SET_OWNER(e, a) {
59
+ e.owner = a;
60
+ },
61
+ SET_ROLES(e, a) {
62
+ e.roles = a;
63
+ },
64
+ SET_MENUS(e, a) {
65
+ a.length ? e.menus = r(a) : e.menus.push({});
66
+ },
67
+ CLEAR_MENUS(e) {
68
+ e.menus = [];
69
+ },
70
+ SET_RESOURCES(e, a) {
71
+ e.resources = r(a);
72
+ }
73
+ },
74
+ actions: {
75
+ setInfo({ commit: e }, a) {
76
+ typeof a == "object" && (e("SET_NAME", a.username), e("SET_OWNER", a.owner), e("SET_ROLES", a.roles), localStorage.setItem("auth", JSON.stringify(a)), localStorage.setItem("token", a.token));
77
+ },
78
+ setMenu({ commit: e }, a) {
79
+ e("SET_MENUS", a);
80
+ },
81
+ setResources({ commit: e }, a) {
82
+ e("SET_RESOURCES", a);
83
+ },
84
+ logout({ commit: e }) {
85
+ e("SET_NAME", ""), e("SET_OWNER", ""), e("SET_ROLES", []), e("CLEAR_MENUS", []), e("SET_RESOURCES", []), localStorage.removeItem("auth"), localStorage.removeItem("token");
86
+ }
87
+ }
88
+ }, m = {
89
+ namespaced: !0,
90
+ state: () => ({
91
+ language: localStorage.getItem("language") || "cn"
92
+ }),
93
+ mutations: {
94
+ SET_LANG(e, a) {
95
+ e.language = a, localStorage.setItem("language", a);
96
+ }
97
+ },
98
+ actions: {
99
+ setLanguage({ commit: e }, a) {
100
+ e("SET_LANG", a);
101
+ }
102
+ }
103
+ }, O = T({
104
+ modules: {
105
+ app: N,
106
+ auth: R,
107
+ lang: m
108
+ }
109
+ });
110
+ export {
111
+ O as default
112
+ };
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .app-item[data-v-2a3537f2]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:5px 0}.app-item-img[data-v-2a3537f2]{width:30px;height:30px;margin-right:12px}.system-select-dropdown::-webkit-scrollbar{width:0}.system-select-dropdown{max-height:250px;overflow-y:auto;overflow-x:hidden}.system-select-dropdown .el-dropdown-menu__item.is-disabled{color:#606266}.system-select-dropdown .el-dropdown-menu__item:focus,.system-select-dropdown .el-dropdown-menu__item:not(.is-disabled):hover{background-color:#f9f9fa;color:#000;font-weight:700}.keep-left{left:0!important}.navbar-box[data-v-8bd87771]{height:56px;padding:10px 20px;border-bottom:1px solid #e6e6e6;backdrop-filter:saturate(50%) blur(8px);position:fixed;z-index:100}.one-sidebar__iconPark[data-v-7b449531]{width:19px!important;height:19px!important;visibility:visible!important;overflow:unset!important;display:flex!important}.sidebar-container[data-v-6267fe5c]{width:fit-content}.sidebar-container-header[data-v-6267fe5c]{display:flex;justify-content:center;align-items:center}.sidebar-container-header-title[data-v-6267fe5c]{display:flex;align-items:center;height:36px}.sidebar-container-header-title .title[data-v-6267fe5c]{font-weight:600;font-size:22px;margin-left:5px;height:100%}.sidebar-container-header-title-right[data-v-6267fe5c]{margin-left:10px;text-align:center}.sidebar-container-header-title .environment[data-v-6267fe5c]{font-size:12px;font-weight:700;font-style:italic}.el-menu-vertical-demo[data-v-6267fe5c]{height:calc(100vh - 68px);overflow-y:auto;overflow-x:hidden}.el-menu-vertical-demo[data-v-6267fe5c]::-webkit-scrollbar{width:0}.el-menu-vertical-demo[data-v-6267fe5c]:not(.el-menu--collapse){width:240px}.dot[data-v-fc46f154]{position:absolute;width:5px;height:5px;border-radius:50%;background:red;transform:translate(10px,-8px)}.message-card__text[data-v-fc46f154]{color:var(--ftlOne-message-text-color, #999);font-size:12px}.require_label[data-v-c2fa7051]:before{content:"*";color:#f36c6c;margin-right:4px}[data-v-26ba49dc] .el-input__wrapper{border:none;border-radius:0;line-height:24px!important;height:24px!important;background:transparent!important;padding-left:5px!important;box-shadow:none!important}.show-content[data-v-26ba49dc]{position:relative}.show-content-popover[data-v-26ba49dc]{width:320px;position:absolute;top:40px;background:#ffffff;border-radius:4px;border:1px solid #e6ebf5;padding:12px;z-index:2000;color:#606266;line-height:1.4;font-size:14px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px #0000001a;word-break:break-all}.show-content-popover-content[data-v-26ba49dc]{height:250px;padding:10px;overflow:auto}.show-content-popover-content .innerInfo[data-v-26ba49dc],.show-content-popover-content .showInfo[data-v-26ba49dc]{display:flex;align-items:center}.show-content-popover-content .innerInfo .number[data-v-26ba49dc],.show-content-popover-content .showInfo .number[data-v-26ba49dc]{font-size:12px;width:40px;display:inline-block;text-align:right;color:#bec1c7}.input-cotainer[data-v-26ba49dc]{padding:2px 10px 1px 2px;position:relative;z-index:200;display:flex;justify-content:space-between;align-items:center;width:300px;border:1px solid rgb(218,221,228);border-radius:5px;height:28px}.input-cotainer-content[data-v-26ba49dc]{width:225px;overflow-y:auto;height:26px}.input-cotainer-content .innerInfo[data-v-26ba49dc],.input-cotainer-content .showInfo[data-v-26ba49dc]{display:flex;align-items:center;height:26px;line-height:26px;overflow:hidden}.input-cotainer-content .innerInfo .number[data-v-26ba49dc],.input-cotainer-content .showInfo .number[data-v-26ba49dc]{width:30px;text-align:right;font-size:12px;color:#bec1c7}.input-cotainer-content[data-v-26ba49dc]::-webkit-scrollbar{width:4px;height:4px}.input-cotainer-tool[data-v-26ba49dc]{display:flex;align-items:flex-start}.input-cotainer-tool-count[data-v-26ba49dc]{margin-right:3px;font-size:10px;padding:0 8px;border-radius:0 0 0 10px;line-height:14px}.input-cotainer-tool-icon[data-v-26ba49dc]{display:flex}.input-height-large[data-v-26ba49dc]{height:var(--el-component-size-large)!important}.input-height-large .input-cotainer-content[data-v-26ba49dc]{height:calc(var(--el-component-size-large) - 2px)!important}.input-height-large .innerInfo[data-v-26ba49dc],.input-height-large .showInfo[data-v-26ba49dc]{height:calc(var(--el-component-size-large) - 2px)!important;line-height:calc(var(--el-component-size-large) - 2px)!important}.input-height-small[data-v-26ba49dc]{height:var(--el-component-size-small)!important}.input-height-small .input-cotainer-content[data-v-26ba49dc]{height:calc(var(--el-component-size-small) - 2px)!important}.input-height-small .innerInfo[data-v-26ba49dc],.input-height-small .showInfo[data-v-26ba49dc]{height:calc(var(--el-component-size-small) - 2px)!important;line-height:calc(var(--el-component-size-small) - 2px)!important}.input-height-default[data-v-26ba49dc]{height:var(--el-component-size)!important}.input-height-default .input-cotainer-content[data-v-26ba49dc]{height:calc(var(--el-component-size) - 2px)!important}.input-height-default .innerInfo[data-v-26ba49dc],.input-height-default .showInfo[data-v-26ba49dc]{height:calc(var(--el-component-size) - 2px)!important;line-height:calc(var(--el-component-size) - 2px)!important}.func-area[data-v-26ba49dc]{margin-top:10px;display:flex;justify-content:space-between;align-items:center}.dialog__title[data-v-b6d5935c]{line-height:30px;text-align:center;font-size:20px;margin-bottom:20px}
@@ -0,0 +1,17 @@
1
+ var n = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2
+ function a(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ function f(e, t = 1e3) {
6
+ let o;
7
+ return function(...l) {
8
+ clearTimeout(o), o = setTimeout(() => {
9
+ e.apply(this, l);
10
+ }, t);
11
+ };
12
+ }
13
+ export {
14
+ n as c,
15
+ f as d,
16
+ a as g
17
+ };