@cmstops/pro-compo 0.1.2 → 0.1.4
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/index.css +141 -5
- package/dist/index.min.css +1 -1
- package/es/appCenter/component.js +3 -2
- package/es/appCenter/script/routeMap.d.ts +1 -1
- package/es/appCenter/style/index.css +1 -1
- package/es/appCenter/style/index.less +1 -1
- package/es/config.d.ts +2 -0
- package/es/config.js +3 -0
- package/es/contentModal/component.d.ts +0 -0
- package/es/contentModal/component.js +175 -0
- package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
- package/es/contentModal/components/CompoList/CompoFilter/index.js +103 -0
- package/es/contentModal/components/CompoList/index.d.ts +0 -0
- package/es/contentModal/components/CompoList/index.js +234 -0
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +44 -0
- package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +101 -0
- package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/index.js +277 -0
- package/es/contentModal/components/storeBox/index.d.ts +0 -0
- package/es/contentModal/components/storeBox/index.js +107 -0
- package/es/contentModal/index.d.ts +2 -0
- package/es/contentModal/index.js +7 -0
- package/es/contentModal/script/api.d.ts +10 -0
- package/es/contentModal/script/api.js +45 -0
- package/es/contentModal/style/MediaFilter.less +8 -0
- package/es/contentModal/style/ViewAllColumn.less +33 -0
- package/es/contentModal/style/columnTree.less +9 -0
- package/es/contentModal/style/css.js +5 -0
- package/es/contentModal/style/index.css +13 -0
- package/es/contentModal/style/index.d.ts +5 -0
- package/es/contentModal/style/index.js +5 -0
- package/es/contentModal/style/index.less +16 -0
- package/es/contentModal/style/storeBox.less +45 -0
- package/es/hooks/batch.d.ts +8 -0
- package/es/hooks/batch.js +26 -0
- package/es/hooks/user.d.ts +11 -0
- package/es/hooks/user.js +46 -0
- package/es/index.css +141 -5
- package/es/index.d.ts +6 -1
- package/es/index.js +6 -1
- package/es/index.less +6 -1
- package/es/messageBox/component.d.ts +0 -0
- package/es/messageBox/component.js +146 -0
- package/es/messageBox/index.d.ts +2 -0
- package/es/messageBox/index.js +7 -0
- package/es/messageBox/list.d.ts +0 -0
- package/es/messageBox/list.js +116 -0
- package/es/messageBox/script/api.d.ts +6 -0
- package/es/messageBox/script/api.js +16 -0
- package/es/messageBox/style/index.css +64 -0
- package/es/messageBox/style/index.less +71 -0
- package/es/resourceModal/component.d.ts +0 -0
- package/es/resourceModal/component.js +14 -0
- package/es/resourceModal/index.d.ts +2 -0
- package/es/resourceModal/index.js +7 -0
- package/es/resourceModal/style/css.js +1 -0
- package/es/resourceModal/style/index.d.ts +1 -0
- package/es/resourceModal/style/index.js +1 -0
- package/es/style.css +5 -0
- package/es/typeIcons/component.d.ts +0 -0
- package/es/typeIcons/component.js +62 -0
- package/es/typeIcons/index.d.ts +2 -0
- package/es/typeIcons/index.js +7 -0
- package/es/typeIcons/style/css.js +1 -0
- package/es/typeIcons/style/index.css +5 -0
- package/es/typeIcons/style/index.d.ts +1 -0
- package/es/typeIcons/style/index.js +1 -0
- package/es/typeIcons/style/index.less +5 -0
- package/es/uploadStep/component.d.ts +0 -0
- package/es/uploadStep/component.js +14 -0
- package/es/uploadStep/index.d.ts +2 -0
- package/es/uploadStep/index.js +7 -0
- package/es/uploadStep/style/css.js +1 -0
- package/es/uploadStep/style/index.d.ts +1 -0
- package/es/uploadStep/style/index.js +1 -0
- package/es/userAvater/component.d.ts +0 -0
- package/es/userAvater/component.js +167 -0
- package/es/userAvater/index.d.ts +2 -0
- package/es/userAvater/index.js +7 -0
- package/es/userAvater/script/api.d.ts +8 -0
- package/es/userAvater/script/api.js +32 -0
- package/es/userAvater/style/css.js +1 -0
- package/es/userAvater/style/index.css +50 -0
- package/es/userAvater/style/index.d.ts +1 -0
- package/es/userAvater/style/index.js +1 -0
- package/es/userAvater/style/index.less +54 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +7 -0
- package/es/utils/request.js +1 -1
- package/es/utils/typeMap.d.ts +116 -0
- package/es/utils/typeMap.js +22 -0
- package/lib/appCenter/component.js +3 -2
- package/lib/appCenter/style/index.css +1 -1
- package/lib/appCenter/style/index.less +1 -1
- package/lib/config.js +6 -0
- package/lib/contentModal/component.js +176 -0
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +104 -0
- package/lib/contentModal/components/CompoList/index.js +235 -0
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +45 -0
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +102 -0
- package/lib/contentModal/components/ViewAllColumn/index.js +278 -0
- package/lib/contentModal/components/storeBox/index.js +108 -0
- package/lib/contentModal/index.js +8 -0
- package/lib/contentModal/script/api.js +52 -0
- package/lib/contentModal/style/MediaFilter.less +8 -0
- package/lib/contentModal/style/ViewAllColumn.less +33 -0
- package/lib/contentModal/style/columnTree.less +9 -0
- package/lib/contentModal/style/css.js +6 -0
- package/lib/contentModal/style/index.css +13 -0
- package/lib/contentModal/style/index.js +6 -0
- package/lib/contentModal/style/index.less +16 -0
- package/lib/contentModal/style/storeBox.less +45 -0
- package/lib/hooks/batch.js +27 -0
- package/lib/hooks/user.js +49 -0
- package/lib/index.css +141 -5
- package/lib/index.js +14 -4
- package/lib/index.less +6 -1
- package/lib/messageBox/component.js +147 -0
- package/lib/messageBox/index.js +8 -0
- package/lib/messageBox/list.js +117 -0
- package/lib/messageBox/script/api.js +19 -0
- package/lib/messageBox/style/index.css +64 -0
- package/lib/messageBox/style/index.less +71 -0
- package/lib/resourceModal/component.js +15 -0
- package/lib/resourceModal/index.js +8 -0
- package/lib/resourceModal/style/css.js +2 -0
- package/lib/resourceModal/style/index.css +4 -0
- package/lib/resourceModal/style/index.js +2 -0
- package/lib/resourceModal/style/index.less +4 -0
- package/lib/typeIcons/component.js +63 -0
- package/lib/{button → typeIcons}/index.js +2 -2
- package/lib/typeIcons/style/css.js +2 -0
- package/lib/typeIcons/style/index.css +5 -0
- package/lib/typeIcons/style/index.js +2 -0
- package/lib/typeIcons/style/index.less +5 -0
- package/lib/uploadStep/component.js +15 -0
- package/lib/uploadStep/index.js +8 -0
- package/lib/uploadStep/style/css.js +2 -0
- package/lib/uploadStep/style/index.css +4 -0
- package/lib/uploadStep/style/index.js +2 -0
- package/lib/uploadStep/style/index.less +4 -0
- package/lib/userAvater/component.js +168 -0
- package/lib/userAvater/index.js +8 -0
- package/lib/userAvater/script/api.js +37 -0
- package/lib/userAvater/style/css.js +2 -0
- package/lib/userAvater/style/index.css +50 -0
- package/lib/userAvater/style/index.js +2 -0
- package/lib/userAvater/style/index.less +54 -0
- package/lib/utils/index.js +13 -0
- package/lib/utils/request.js +1 -1
- package/lib/utils/typeMap.js +25 -0
- package/package.json +4 -2
- package/es/_virtual/plugin-vue_export-helper.js +0 -7
- package/es/button/component.d.ts +0 -24
- package/es/button/component.js +0 -43
- package/es/button/index.d.ts +0 -103
- package/es/button/index.js +0 -7
- package/lib/_virtual/plugin-vue_export-helper.js +0 -8
- package/lib/button/component.js +0 -44
- /package/es/{button → messageBox}/style/css.js +0 -0
- /package/es/{button → messageBox}/style/index.d.ts +0 -0
- /package/es/{button → messageBox}/style/index.js +0 -0
- /package/es/{button → resourceModal}/style/index.css +0 -0
- /package/es/{button → resourceModal}/style/index.less +0 -0
- /package/{lib/button → es/uploadStep}/style/index.css +0 -0
- /package/{lib/button → es/uploadStep}/style/index.less +0 -0
- /package/lib/{button → messageBox}/style/css.js +0 -0
- /package/lib/{button → messageBox}/style/index.js +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { defineComponent, useSlots, ref, onMounted, openBlock, createElementBlock, createBlock, unref, withCtx, createElementVNode, createVNode, withModifiers, toDisplayString, createCommentVNode, Fragment, renderList, createTextVNode, renderSlot } from "vue";
|
|
2
|
+
import { Popover, Avatar, Dropdown, Doption, Button } from "@arco-design/web-vue";
|
|
3
|
+
import { IconEdit } from "@arco-design/web-vue/es/icon";
|
|
4
|
+
import { DEFAULT_BASE_API, DEFAULT_BASE_ACCOUNT_HOST } from "../config.js";
|
|
5
|
+
import { getUserInfo, getUserDetails, accountLogout, domainSelect } from "./script/api.js";
|
|
6
|
+
const _hoisted_1 = { class: "user-avater-container" };
|
|
7
|
+
const _hoisted_2 = ["src"];
|
|
8
|
+
const _hoisted_3 = { key: 1 };
|
|
9
|
+
const _hoisted_4 = { class: "user-avater-content-info" };
|
|
10
|
+
const _hoisted_5 = { class: "avatar" };
|
|
11
|
+
const _hoisted_6 = ["src"];
|
|
12
|
+
const _hoisted_7 = { class: "nick-name" };
|
|
13
|
+
const _hoisted_8 = { class: "user-name" };
|
|
14
|
+
const _hoisted_9 = { class: "user-email" };
|
|
15
|
+
const _hoisted_10 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "org-alias"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_11 = { class: "b_info_bottom" };
|
|
20
|
+
const _sfc_main = defineComponent({
|
|
21
|
+
...{ name: "userAvater" },
|
|
22
|
+
__name: "component",
|
|
23
|
+
props: {
|
|
24
|
+
BASE_API: {},
|
|
25
|
+
BASE_ACCOUNT_HOST: {},
|
|
26
|
+
userStore: {}
|
|
27
|
+
},
|
|
28
|
+
setup(__props) {
|
|
29
|
+
const props = __props;
|
|
30
|
+
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
31
|
+
const BASE_ACCOUNT_HOST = props.BASE_ACCOUNT_HOST || DEFAULT_BASE_ACCOUNT_HOST;
|
|
32
|
+
const slotTest = !!useSlots().reference;
|
|
33
|
+
const userInfo = ref(null);
|
|
34
|
+
const loadUserInfo = async () => {
|
|
35
|
+
const res = await getUserInfo(BASE_API);
|
|
36
|
+
if (res.code === 0 && res.message) {
|
|
37
|
+
const userInfo2 = res.message;
|
|
38
|
+
getUserDomainsByDetail(userInfo2);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const getUserDomainsByDetail = async (_userInfo) => {
|
|
42
|
+
const res = await getUserDetails(BASE_API, {
|
|
43
|
+
id: _userInfo.id,
|
|
44
|
+
domainid: _userInfo.domain_id
|
|
45
|
+
});
|
|
46
|
+
if (res.code === 0 && res.message) {
|
|
47
|
+
_userInfo.domains = res.message.domains;
|
|
48
|
+
for (const k in _userInfo.domains) {
|
|
49
|
+
if (_userInfo.domains[k].id === _userInfo.domain_id) {
|
|
50
|
+
_userInfo.currentDomain = _userInfo.domains[k].alias;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
userInfo.value = _userInfo;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const loginOut = async () => {
|
|
57
|
+
await accountLogout(BASE_ACCOUNT_HOST);
|
|
58
|
+
window.location.href = BASE_ACCOUNT_HOST;
|
|
59
|
+
};
|
|
60
|
+
const profile = () => {
|
|
61
|
+
window.open(`${BASE_API}/foowz/#/account`, "_blank");
|
|
62
|
+
};
|
|
63
|
+
const domainClick = async (item) => {
|
|
64
|
+
const res = await domainSelect(BASE_API, item.id);
|
|
65
|
+
if (res.code === 0 && res.message) {
|
|
66
|
+
window.location.href = res.message;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
onMounted(() => {
|
|
70
|
+
if (props.userStore) {
|
|
71
|
+
userInfo.value = props.userStore;
|
|
72
|
+
getUserDomainsByDetail(userInfo.value);
|
|
73
|
+
} else {
|
|
74
|
+
loadUserInfo();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
return (_ctx, _cache) => {
|
|
78
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
79
|
+
userInfo.value ? (openBlock(), createBlock(unref(Popover), {
|
|
80
|
+
key: 0,
|
|
81
|
+
trigger: "hover",
|
|
82
|
+
position: "bottom",
|
|
83
|
+
"arrow-style": { display: "none" },
|
|
84
|
+
"content-style": { padding: 0 }
|
|
85
|
+
}, {
|
|
86
|
+
content: withCtx(() => {
|
|
87
|
+
var _a;
|
|
88
|
+
return [
|
|
89
|
+
createElementVNode("div", _hoisted_4, [
|
|
90
|
+
createElementVNode("div", _hoisted_5, [
|
|
91
|
+
createVNode(unref(Avatar), {
|
|
92
|
+
"trigger-type": "mask",
|
|
93
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => profile(), ["stop"]))
|
|
94
|
+
}, {
|
|
95
|
+
"trigger-icon": withCtx(() => [
|
|
96
|
+
createVNode(unref(IconEdit))
|
|
97
|
+
]),
|
|
98
|
+
default: withCtx(() => [
|
|
99
|
+
createElementVNode("img", {
|
|
100
|
+
alt: "avatar",
|
|
101
|
+
src: userInfo.value.avatar
|
|
102
|
+
}, null, 8, _hoisted_6)
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
})
|
|
106
|
+
]),
|
|
107
|
+
createElementVNode("div", _hoisted_7, toDisplayString(userInfo.value.alias || "\u6682\u65E0"), 1),
|
|
108
|
+
createElementVNode("div", _hoisted_8, toDisplayString(userInfo.value.name), 1),
|
|
109
|
+
createElementVNode("div", _hoisted_9, toDisplayString(userInfo.value.mail || "\u6682\u65E0\u90AE\u7BB1"), 1),
|
|
110
|
+
((_a = userInfo.value.domains) == null ? void 0 : _a.length) === 1 && userInfo.value.currentDomain ? (openBlock(), createElementBlock("div", _hoisted_10, toDisplayString(userInfo.value.currentDomain), 1)) : createCommentVNode("v-if", true),
|
|
111
|
+
createVNode(unref(Dropdown), null, {
|
|
112
|
+
content: withCtx(() => [
|
|
113
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(userInfo.value.domains, (item, index) => {
|
|
114
|
+
return openBlock(), createBlock(unref(Doption), {
|
|
115
|
+
key: index,
|
|
116
|
+
onClick: withModifiers(($event) => domainClick(item), ["stop"])
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createTextVNode(toDisplayString(item.alias), 1)
|
|
120
|
+
]),
|
|
121
|
+
_: 2
|
|
122
|
+
}, 1032, ["onClick"]);
|
|
123
|
+
}), 128))
|
|
124
|
+
]),
|
|
125
|
+
default: withCtx(() => [
|
|
126
|
+
createVNode(unref(Button), { long: "" }, {
|
|
127
|
+
default: withCtx(() => [
|
|
128
|
+
createTextVNode(toDisplayString(userInfo.value.currentDomain), 1)
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
})
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}),
|
|
135
|
+
createElementVNode("div", _hoisted_11, [
|
|
136
|
+
createVNode(unref(Button), {
|
|
137
|
+
type: "text",
|
|
138
|
+
onClick: _cache[1] || (_cache[1] = ($event) => loginOut())
|
|
139
|
+
}, {
|
|
140
|
+
default: withCtx(() => [
|
|
141
|
+
createTextVNode("\u9000\u51FA")
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
})
|
|
145
|
+
])
|
|
146
|
+
])
|
|
147
|
+
];
|
|
148
|
+
}),
|
|
149
|
+
default: withCtx(() => [
|
|
150
|
+
slotTest ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : (openBlock(), createBlock(unref(Avatar), { key: 1 }, {
|
|
151
|
+
default: withCtx(() => [
|
|
152
|
+
userInfo.value.avatar ? (openBlock(), createElementBlock("img", {
|
|
153
|
+
key: 0,
|
|
154
|
+
alt: "avatar",
|
|
155
|
+
src: userInfo.value.avatar
|
|
156
|
+
}, null, 8, _hoisted_2)) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(userInfo.value.name), 1))
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}))
|
|
160
|
+
]),
|
|
161
|
+
_: 3
|
|
162
|
+
})) : createCommentVNode("v-if", true)
|
|
163
|
+
]);
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getUserInfo(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
5
|
+
export declare function getUserDetails(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
6
|
+
export declare function domainSelect(BASE_API: string, did: number): import("axios").AxiosPromise<any>;
|
|
7
|
+
export declare function accountLogout(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import request from "../../utils/request.js";
|
|
2
|
+
function getUserInfo(BASE_API, params) {
|
|
3
|
+
return request(BASE_API, {
|
|
4
|
+
url: "/poplar/v2/account/info",
|
|
5
|
+
method: "get",
|
|
6
|
+
params
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function getUserDetails(BASE_API, params) {
|
|
10
|
+
return request(BASE_API, {
|
|
11
|
+
url: `/poplar/v2/account/detail`,
|
|
12
|
+
method: "get",
|
|
13
|
+
params
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function domainSelect(BASE_API, did) {
|
|
17
|
+
return request(BASE_API, {
|
|
18
|
+
url: "/sandy/v1/account/domain/select",
|
|
19
|
+
method: "post",
|
|
20
|
+
data: {
|
|
21
|
+
domain_id: did
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function accountLogout(BASE_API, params) {
|
|
26
|
+
return request(BASE_API, {
|
|
27
|
+
url: "/sandy/v1/account/logout",
|
|
28
|
+
method: "post",
|
|
29
|
+
params
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export { accountLogout, domainSelect, getUserDetails, getUserInfo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.css";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.user-avater-content-info {
|
|
2
|
+
width: 328px;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
padding: 24px;
|
|
8
|
+
padding-bottom: 0px;
|
|
9
|
+
line-height: 1;
|
|
10
|
+
}
|
|
11
|
+
.user-avater-content-info .avatar {
|
|
12
|
+
width: 74px;
|
|
13
|
+
height: 74px;
|
|
14
|
+
position: relative;
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
margin-bottom: 10px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
}
|
|
22
|
+
.user-avater-content-info .avatar .arco-avatar {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
.user-avater-content-info .nick-name {
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
color: #1D2129;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
}
|
|
32
|
+
.user-avater-content-info .user-name,
|
|
33
|
+
.user-avater-content-info .user-email {
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
color: #86909C;
|
|
36
|
+
margin-bottom: 10px;
|
|
37
|
+
}
|
|
38
|
+
.user-avater-content-info .org-alias {
|
|
39
|
+
border: 1px solid #EBEEF5;
|
|
40
|
+
padding: 10px 20px;
|
|
41
|
+
border-radius: 40px;
|
|
42
|
+
}
|
|
43
|
+
.user-avater-content-info .b_info_bottom {
|
|
44
|
+
height: 52px;
|
|
45
|
+
padding: 10px 16px;
|
|
46
|
+
width: 100%;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.user-avater-container {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.user-avater-content-info {
|
|
6
|
+
width: 328px;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
padding: 24px;
|
|
12
|
+
padding-bottom: 0px;
|
|
13
|
+
line-height: 1;
|
|
14
|
+
.avatar {
|
|
15
|
+
width: 74px;
|
|
16
|
+
height: 74px;
|
|
17
|
+
position: relative;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
margin-bottom: 10px;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
.arco-avatar {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.nick-name {
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
color: #1D2129;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
margin-bottom: 10px;
|
|
34
|
+
}
|
|
35
|
+
.user-name,
|
|
36
|
+
.user-email {
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
color: #86909C;
|
|
39
|
+
margin-bottom: 10px;
|
|
40
|
+
}
|
|
41
|
+
.org-alias {
|
|
42
|
+
border: 1px solid #EBEEF5;
|
|
43
|
+
padding: 10px 20px;
|
|
44
|
+
border-radius: 40px;
|
|
45
|
+
}
|
|
46
|
+
.b_info_bottom {
|
|
47
|
+
height: 52px;
|
|
48
|
+
padding: 10px 16px;
|
|
49
|
+
width: 100%;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dateYYYYDDMMHHmm: (date: any) => string;
|
package/es/utils/request.js
CHANGED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const docType: {
|
|
2
|
+
blank: string;
|
|
3
|
+
atlas: string;
|
|
4
|
+
video: string;
|
|
5
|
+
video_album: string;
|
|
6
|
+
imagetext: string;
|
|
7
|
+
link: string;
|
|
8
|
+
wechat: string;
|
|
9
|
+
live: string;
|
|
10
|
+
ad: string;
|
|
11
|
+
h5: string;
|
|
12
|
+
special_v3: string;
|
|
13
|
+
activity: string;
|
|
14
|
+
booklink: string;
|
|
15
|
+
svideo: string;
|
|
16
|
+
audio: string;
|
|
17
|
+
audio_album: string;
|
|
18
|
+
vote_activity: string;
|
|
19
|
+
vote: string;
|
|
20
|
+
cloud_form: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const catalogMap: {
|
|
23
|
+
doc: string;
|
|
24
|
+
video: string;
|
|
25
|
+
project: string;
|
|
26
|
+
audio: string;
|
|
27
|
+
image: string;
|
|
28
|
+
pdf: string;
|
|
29
|
+
officeexcel: string;
|
|
30
|
+
officeppt: string;
|
|
31
|
+
officedoc: string;
|
|
32
|
+
rar: string;
|
|
33
|
+
zip: string;
|
|
34
|
+
txt: string;
|
|
35
|
+
html: string;
|
|
36
|
+
exe: string;
|
|
37
|
+
other: string;
|
|
38
|
+
contentList: string;
|
|
39
|
+
column: string;
|
|
40
|
+
link: string;
|
|
41
|
+
banners: string;
|
|
42
|
+
group: string;
|
|
43
|
+
mpGroup: string;
|
|
44
|
+
mpList: string;
|
|
45
|
+
mpAccount: string;
|
|
46
|
+
mpTopic: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const target_type_map: {
|
|
49
|
+
3: string;
|
|
50
|
+
4: string;
|
|
51
|
+
5: string;
|
|
52
|
+
6: string;
|
|
53
|
+
7: string;
|
|
54
|
+
8: string;
|
|
55
|
+
9: string;
|
|
56
|
+
10: string;
|
|
57
|
+
};
|
|
58
|
+
export declare const key_target_type_map: {
|
|
59
|
+
3: string;
|
|
60
|
+
4: string;
|
|
61
|
+
5: string;
|
|
62
|
+
6: string;
|
|
63
|
+
7: string;
|
|
64
|
+
8: string;
|
|
65
|
+
9: string;
|
|
66
|
+
11: string;
|
|
67
|
+
12: string;
|
|
68
|
+
13: string;
|
|
69
|
+
};
|
|
70
|
+
export declare const componentsColumns: any;
|
|
71
|
+
export declare const compoColumnsWithKeyMap: {
|
|
72
|
+
top: string;
|
|
73
|
+
banner: string;
|
|
74
|
+
newsletters: string;
|
|
75
|
+
svideo: string;
|
|
76
|
+
function: string;
|
|
77
|
+
special: string;
|
|
78
|
+
news_letter: string;
|
|
79
|
+
focus: string;
|
|
80
|
+
horizon_slide: string;
|
|
81
|
+
radio: string;
|
|
82
|
+
tv: string;
|
|
83
|
+
mp_account: string;
|
|
84
|
+
column: string;
|
|
85
|
+
};
|
|
86
|
+
export declare const compoColumnsMap: () => any;
|
|
87
|
+
export declare const contentList_list_type_map: {
|
|
88
|
+
1: string;
|
|
89
|
+
2: string;
|
|
90
|
+
3: string;
|
|
91
|
+
4: string;
|
|
92
|
+
5: string;
|
|
93
|
+
6: string;
|
|
94
|
+
7: string;
|
|
95
|
+
};
|
|
96
|
+
export declare const contentList_relation_type_map: {
|
|
97
|
+
0: string;
|
|
98
|
+
1: string;
|
|
99
|
+
2: string;
|
|
100
|
+
3: string;
|
|
101
|
+
4: string;
|
|
102
|
+
10: string;
|
|
103
|
+
};
|
|
104
|
+
export declare const contentList_layout_map: {
|
|
105
|
+
blank: string;
|
|
106
|
+
svideo: string;
|
|
107
|
+
fly_card: string;
|
|
108
|
+
video: string;
|
|
109
|
+
immersive_video: string;
|
|
110
|
+
timeline: string;
|
|
111
|
+
lbs: string;
|
|
112
|
+
};
|
|
113
|
+
export declare const mp_type_map: {
|
|
114
|
+
1: string;
|
|
115
|
+
2: string;
|
|
116
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const componentsColumns = {
|
|
2
|
+
banner: { value: "banner", label: "\u8F6E\u64AD\u7EC4\u4EF6" },
|
|
3
|
+
top: { value: "top", label: "\u7F6E\u9876\u7EC4\u4EF6" },
|
|
4
|
+
horizon_slide: { value: "horizon_slide", label: "\u6A2A\u6ED1\u7EC4\u4EF6" },
|
|
5
|
+
svideo: { value: "svideo", label: "\u5C0F\u89C6\u9891\u7EC4\u4EF6" },
|
|
6
|
+
special: { value: "special", label: "\u4E13\u9898/\u5408\u96C6\u7EC4\u4EF6" },
|
|
7
|
+
news_letter: { value: "news_letter", label: "\u5FEB\u8BAF\u7EC4\u4EF6" },
|
|
8
|
+
focus: { value: "focus", label: "\u70ED\u70B9\u7EC4\u4EF6" },
|
|
9
|
+
radio: { value: "radio", label: "\u5E7F\u64AD\u7EC4\u4EF6", simple: true },
|
|
10
|
+
tv: { value: "tv", label: "\u7535\u89C6\u7EC4\u4EF6", simple: true },
|
|
11
|
+
mp_account: { value: "mp_account", label: "\u516C\u4F17\u53F7\u7EC4\u4EF6" },
|
|
12
|
+
column: { value: "column", label: "\u5206\u680F\u7EC4\u4EF6" }
|
|
13
|
+
};
|
|
14
|
+
const compoColumnsMap = () => {
|
|
15
|
+
const obj = {};
|
|
16
|
+
Object.keys(componentsColumns).map((key) => {
|
|
17
|
+
obj[key] = componentsColumns[key].label.replace("\u7EC4\u4EF6", "");
|
|
18
|
+
return key;
|
|
19
|
+
});
|
|
20
|
+
return obj;
|
|
21
|
+
};
|
|
22
|
+
export { compoColumnsMap, componentsColumns };
|
|
@@ -6,11 +6,12 @@ var permissionMap = require("./script/permissionMap.js");
|
|
|
6
6
|
var apps = require("./script/apps.js");
|
|
7
7
|
var api = require("./script/api.js");
|
|
8
8
|
var auth = require("../utils/auth.js");
|
|
9
|
+
var config = require("../config.js");
|
|
9
10
|
const _hoisted_1 = {
|
|
10
11
|
key: 1,
|
|
11
12
|
class: "reference-btn"
|
|
12
13
|
};
|
|
13
|
-
const _hoisted_2 = { class: "
|
|
14
|
+
const _hoisted_2 = { class: "apps-box-popover" };
|
|
14
15
|
const _hoisted_3 = {
|
|
15
16
|
key: 0,
|
|
16
17
|
class: "app-title"
|
|
@@ -46,7 +47,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
46
47
|
const permissions = vue.ref([]);
|
|
47
48
|
const slotTest = !!vue.useSlots().reference;
|
|
48
49
|
const rid = auth.getRID() || "4";
|
|
49
|
-
const BASE_API = props.BASE_API ||
|
|
50
|
+
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
50
51
|
const navList = vue.computed(() => {
|
|
51
52
|
const appList2 = [];
|
|
52
53
|
StorePubApplication.value.map((item) => {
|
package/lib/config.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const DEFAULT_BASE_API = "https://site.cmstop.xyz";
|
|
4
|
+
const DEFAULT_BASE_ACCOUNT_HOST = "https://account.cmstop.xyz";
|
|
5
|
+
exports.DEFAULT_BASE_ACCOUNT_HOST = DEFAULT_BASE_ACCOUNT_HOST;
|
|
6
|
+
exports.DEFAULT_BASE_API = DEFAULT_BASE_API;
|