@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,107 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, toDisplayString, createTextVNode } from "vue";
|
|
2
|
+
import { Popover, Scrollbar, Button, Badge } from "@arco-design/web-vue";
|
|
3
|
+
import { IconCloseCircle } from "@arco-design/web-vue/es/icon";
|
|
4
|
+
import _sfc_main$1 from "../../../typeIcons/component.js";
|
|
5
|
+
const _hoisted_1 = { class: "add-content-selected-store-box" };
|
|
6
|
+
const _hoisted_2 = { class: "batch-section-popover-main" };
|
|
7
|
+
const _hoisted_3 = { class: "left" };
|
|
8
|
+
const _hoisted_4 = { class: "title" };
|
|
9
|
+
const _hoisted_5 = { class: "options" };
|
|
10
|
+
const _sfc_main = defineComponent({
|
|
11
|
+
...{ name: "storeBox" },
|
|
12
|
+
__name: "index",
|
|
13
|
+
props: {
|
|
14
|
+
selectData: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:selectData"],
|
|
17
|
+
setup(__props, { emit }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const remove = (item, index) => {
|
|
20
|
+
const arr = props.selectData;
|
|
21
|
+
arr.splice(index, 1);
|
|
22
|
+
emit("update:selectData", arr);
|
|
23
|
+
};
|
|
24
|
+
const clear = () => {
|
|
25
|
+
emit("update:selectData", []);
|
|
26
|
+
};
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
29
|
+
createVNode(unref(Popover), {
|
|
30
|
+
position: "tl",
|
|
31
|
+
"content-class": "selected-store-box-popover-content",
|
|
32
|
+
"content-style": { width: "290px" },
|
|
33
|
+
"arrow-style": { display: "none" },
|
|
34
|
+
trigger: "click"
|
|
35
|
+
}, {
|
|
36
|
+
content: withCtx(() => [
|
|
37
|
+
createElementVNode("div", _hoisted_2, [
|
|
38
|
+
createVNode(unref(Scrollbar), {
|
|
39
|
+
"outer-class": "batch-section-scrollbar",
|
|
40
|
+
style: { "height": "100%", "overflow": "auto" }
|
|
41
|
+
}, {
|
|
42
|
+
default: withCtx(() => [
|
|
43
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.selectData, (item, index) => {
|
|
44
|
+
return openBlock(), createElementBlock("div", {
|
|
45
|
+
key: index,
|
|
46
|
+
class: "item"
|
|
47
|
+
}, [
|
|
48
|
+
createElementVNode("div", _hoisted_3, [
|
|
49
|
+
createVNode(_sfc_main$1, {
|
|
50
|
+
class: "icon",
|
|
51
|
+
doc: "",
|
|
52
|
+
type: item.series
|
|
53
|
+
}, null, 8, ["type"]),
|
|
54
|
+
createElementVNode("span", _hoisted_4, toDisplayString(item.alias || item.title), 1)
|
|
55
|
+
]),
|
|
56
|
+
createVNode(unref(Button), {
|
|
57
|
+
class: "close-btn",
|
|
58
|
+
type: "text",
|
|
59
|
+
shape: "circle",
|
|
60
|
+
size: "mini",
|
|
61
|
+
onClick: ($event) => remove(item, index)
|
|
62
|
+
}, {
|
|
63
|
+
icon: withCtx(() => [
|
|
64
|
+
createVNode(unref(IconCloseCircle), { size: "14" })
|
|
65
|
+
]),
|
|
66
|
+
_: 2
|
|
67
|
+
}, 1032, ["onClick"])
|
|
68
|
+
]);
|
|
69
|
+
}), 128))
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
})
|
|
73
|
+
]),
|
|
74
|
+
createElementVNode("div", _hoisted_5, [
|
|
75
|
+
createVNode(unref(Button), {
|
|
76
|
+
type: "text",
|
|
77
|
+
onClick: clear
|
|
78
|
+
}, {
|
|
79
|
+
default: withCtx(() => [
|
|
80
|
+
createTextVNode("\u6E05\u7A7A")
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
])
|
|
85
|
+
]),
|
|
86
|
+
default: withCtx(() => [
|
|
87
|
+
createVNode(unref(Badge), {
|
|
88
|
+
count: props.selectData.length
|
|
89
|
+
}, {
|
|
90
|
+
default: withCtx(() => [
|
|
91
|
+
createVNode(unref(Button), { class: "button" }, {
|
|
92
|
+
default: withCtx(() => [
|
|
93
|
+
createTextVNode("\u5DF2\u9009\u6570\u636E")
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
})
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["count"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
]);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getCategoryCategoriesTree(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
5
|
+
export declare function getCategoryPath(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
6
|
+
export declare function getCategoryMediaNew(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
7
|
+
export declare function checkCommitFulfillment(BASE_API: string, params?: Params): Promise<boolean>;
|
|
8
|
+
export declare function searchMlists(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
9
|
+
export declare function getCategorylistsGroups(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import request from "../../utils/request.js";
|
|
2
|
+
function getCategoryCategoriesTree(BASE_API, params) {
|
|
3
|
+
return request(BASE_API, {
|
|
4
|
+
url: `/poplar/v3/categories`,
|
|
5
|
+
method: "get",
|
|
6
|
+
params
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function getCategoryPath(BASE_API, params) {
|
|
10
|
+
return request(BASE_API, {
|
|
11
|
+
url: `/poplar/v2/repo/${params == null ? void 0 : params.repo}/category/${params == null ? void 0 : params.category}/path`,
|
|
12
|
+
method: "get"
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function getCategoryMediaNew(BASE_API, params) {
|
|
16
|
+
return request(BASE_API, {
|
|
17
|
+
url: `/poplar/v3/s/documents`,
|
|
18
|
+
method: "get",
|
|
19
|
+
params
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function checkCommitFulfillment(BASE_API, params) {
|
|
23
|
+
return request(BASE_API, {
|
|
24
|
+
url: `/poplar/v2/doc/new/${params == null ? void 0 : params.hash_id}`,
|
|
25
|
+
method: "get"
|
|
26
|
+
}).then((resp) => {
|
|
27
|
+
const content = resp.message;
|
|
28
|
+
return Promise.resolve(!content.payload.includes("image_over_limit.jpg"));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function searchMlists(BASE_API, params) {
|
|
32
|
+
return request(BASE_API, {
|
|
33
|
+
url: `/poplar/v3/mobile_list`,
|
|
34
|
+
method: "get",
|
|
35
|
+
params
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
async function getCategorylistsGroups(BASE_API, params) {
|
|
39
|
+
return request(BASE_API, {
|
|
40
|
+
url: `/poplar/v2/listgroups`,
|
|
41
|
+
method: "get",
|
|
42
|
+
params
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export { checkCommitFulfillment, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, searchMlists };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.view-all-column-container {
|
|
2
|
+
height: 100%;
|
|
3
|
+
.content-table-view {
|
|
4
|
+
height: calc(100% - 110px);
|
|
5
|
+
.title-span {
|
|
6
|
+
width: 100%;
|
|
7
|
+
display: block;
|
|
8
|
+
text-overflow: ellipsis;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
.icon {
|
|
12
|
+
width: 20px;
|
|
13
|
+
height: 25px;
|
|
14
|
+
margin-right: 8px;
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.bottom-view {
|
|
23
|
+
height: 60px;
|
|
24
|
+
margin: 0px 15px;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
.left {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.add-content-modal-wrapper .arco-modal-header {
|
|
2
|
+
border-bottom: none;
|
|
3
|
+
}
|
|
4
|
+
.add-content-modal-body {
|
|
5
|
+
padding: 0;
|
|
6
|
+
height: 70vh;
|
|
7
|
+
}
|
|
8
|
+
.add-content-modal-body .content-tabs {
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
.add-content-modal-body .arco-tabs-content {
|
|
12
|
+
padding-top: 0;
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.selected-store-box-popover-content {
|
|
2
|
+
padding: 0;
|
|
3
|
+
.batch-section-popover-main {
|
|
4
|
+
.item {
|
|
5
|
+
height: 35px;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
padding: 5px 10px;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
.icon {
|
|
12
|
+
width: 20px;
|
|
13
|
+
height: 25px;
|
|
14
|
+
margin-right: 8px;
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
.left {
|
|
21
|
+
width: 90%;
|
|
22
|
+
display: inline-block;
|
|
23
|
+
align-items: center;
|
|
24
|
+
text-overflow: ellipsis;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
}
|
|
28
|
+
.close-btn {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
&:hover,
|
|
32
|
+
&:active {
|
|
33
|
+
background-color: #f6f6f6;
|
|
34
|
+
.close-btn {
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.options {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: flex-end;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const useTableBatch: () => {
|
|
2
|
+
hoverTarget: import("vue").Ref<null>;
|
|
3
|
+
isItemChecked: import("vue").ComputedRef<(selectedData: any, item: any) => any>;
|
|
4
|
+
hoverBatchBox: import("vue").ComputedRef<(selectedData: any, item: any) => any>;
|
|
5
|
+
tableCellMouseEnter: (record: any) => void;
|
|
6
|
+
tableCellMouseLeave: (record: any) => void;
|
|
7
|
+
};
|
|
8
|
+
export default useTableBatch;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ref, computed } from "vue";
|
|
2
|
+
const useTableBatch = () => {
|
|
3
|
+
const hoverTarget = ref(null);
|
|
4
|
+
const isItemChecked = computed(() => (selectedData, item) => {
|
|
5
|
+
return selectedData.map((row) => row.id).includes(item.id);
|
|
6
|
+
});
|
|
7
|
+
const hoverBatchBox = computed(() => (selectedData, item) => {
|
|
8
|
+
return hoverTarget.value === item.id || isItemChecked.value(selectedData, item);
|
|
9
|
+
});
|
|
10
|
+
const tableCellMouseEnter = (record) => {
|
|
11
|
+
hoverTarget.value = record.id;
|
|
12
|
+
};
|
|
13
|
+
const tableCellMouseLeave = (record) => {
|
|
14
|
+
if (record.id === hoverTarget.value) {
|
|
15
|
+
hoverTarget.value = null;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
return {
|
|
19
|
+
hoverTarget,
|
|
20
|
+
isItemChecked,
|
|
21
|
+
hoverBatchBox,
|
|
22
|
+
tableCellMouseEnter,
|
|
23
|
+
tableCellMouseLeave
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export { useTableBatch as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getChannels(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
5
|
+
declare const useLoadUserInfo: (BASE_API: string) => {
|
|
6
|
+
userInfo: import("vue").Ref<{
|
|
7
|
+
BASE_API: string;
|
|
8
|
+
}>;
|
|
9
|
+
getUserInfoHandle: () => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export default useLoadUserInfo;
|
package/es/hooks/user.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import request from "../utils/request.js";
|
|
3
|
+
function getUserInfo(BASE_API, params) {
|
|
4
|
+
return request(BASE_API, {
|
|
5
|
+
url: "/poplar/v2/account/info",
|
|
6
|
+
method: "get",
|
|
7
|
+
params
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function getChannels(BASE_API, params) {
|
|
11
|
+
return request(BASE_API, {
|
|
12
|
+
url: `/poplar/v2/channels?repository_id=${params == null ? void 0 : params.repository_id}`,
|
|
13
|
+
method: "get"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const useLoadUserInfo = (BASE_API) => {
|
|
17
|
+
const userInfo = ref({ BASE_API });
|
|
18
|
+
const getChannelsHandle = async (_user) => {
|
|
19
|
+
const channels = await getChannels(BASE_API, {
|
|
20
|
+
repository_id: _user.repository_id
|
|
21
|
+
});
|
|
22
|
+
if (channels.code === 0) {
|
|
23
|
+
channels.message.map((channel) => {
|
|
24
|
+
_user[`${channel.platform_type}_channel_id`] = channel.id;
|
|
25
|
+
if (channel.logo_type === "2") {
|
|
26
|
+
_user.channel_clientSetting = channel.uid;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return _user;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const getUserInfoHandle = async () => {
|
|
33
|
+
const res = await getUserInfo(BASE_API);
|
|
34
|
+
if (res.code === 0 && res.message) {
|
|
35
|
+
if (res.message.repository_id) {
|
|
36
|
+
res.message = await getChannelsHandle(res.message);
|
|
37
|
+
}
|
|
38
|
+
userInfo.value = { BASE_API, ...res.message };
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return {
|
|
42
|
+
userInfo,
|
|
43
|
+
getUserInfoHandle
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export { useLoadUserInfo as default, getChannels };
|
package/es/index.css
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
.tooltip-button {
|
|
2
|
-
height: auto;
|
|
3
|
-
padding: 20px;
|
|
4
|
-
}
|
|
5
1
|
.reference-btn {
|
|
6
2
|
border: none;
|
|
7
3
|
padding: 12px 16px;
|
|
8
4
|
border-radius: 4px;
|
|
9
5
|
color: #5f5f5f;
|
|
10
6
|
}
|
|
11
|
-
.
|
|
7
|
+
.apps-box-popover {
|
|
12
8
|
position: relative;
|
|
13
9
|
padding: 10px;
|
|
14
10
|
}
|
|
@@ -92,3 +88,143 @@
|
|
|
92
88
|
top: 2px;
|
|
93
89
|
right: 4px;
|
|
94
90
|
}
|
|
91
|
+
.reference-btn {
|
|
92
|
+
border: none;
|
|
93
|
+
padding: 12px 16px;
|
|
94
|
+
border-radius: 4px;
|
|
95
|
+
color: #5f5f5f;
|
|
96
|
+
}
|
|
97
|
+
.message-boxs-popover {
|
|
98
|
+
width: 435px;
|
|
99
|
+
position: relative;
|
|
100
|
+
}
|
|
101
|
+
.message-boxs-popover .arco-tabs-content {
|
|
102
|
+
padding-top: 0;
|
|
103
|
+
}
|
|
104
|
+
.message-boxs-popover .msg-scroll-bar {
|
|
105
|
+
height: 80vh;
|
|
106
|
+
overflow-y: auto;
|
|
107
|
+
display: block;
|
|
108
|
+
}
|
|
109
|
+
.message-boxs-popover .message-list {
|
|
110
|
+
margin: 0;
|
|
111
|
+
padding: 0;
|
|
112
|
+
list-style: none;
|
|
113
|
+
}
|
|
114
|
+
.message-boxs-popover .message-item {
|
|
115
|
+
padding: 16px;
|
|
116
|
+
padding-bottom: 0px;
|
|
117
|
+
}
|
|
118
|
+
.message-boxs-popover .message-item:last-child .message-body {
|
|
119
|
+
border-bottom: none;
|
|
120
|
+
}
|
|
121
|
+
.message-boxs-popover .message-item .message-body {
|
|
122
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
123
|
+
padding-bottom: 16px;
|
|
124
|
+
}
|
|
125
|
+
.message-boxs-popover .message-item .message-body .media-message-content {
|
|
126
|
+
width: 100%;
|
|
127
|
+
}
|
|
128
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-content {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: space-between;
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
color: #4e5969;
|
|
134
|
+
margin-bottom: 18px;
|
|
135
|
+
}
|
|
136
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-info {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: space-between;
|
|
140
|
+
color: #1d2129;
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
line-height: 14px;
|
|
143
|
+
}
|
|
144
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-info .message-media-title {
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
}
|
|
149
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-info .message-media-title .icon {
|
|
150
|
+
margin-right: 4px;
|
|
151
|
+
}
|
|
152
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-info .message-media-title:hover {
|
|
153
|
+
text-decoration: underline;
|
|
154
|
+
}
|
|
155
|
+
.user-avater-content-info {
|
|
156
|
+
width: 328px;
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
align-items: center;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
padding: 24px;
|
|
162
|
+
padding-bottom: 0px;
|
|
163
|
+
line-height: 1;
|
|
164
|
+
}
|
|
165
|
+
.user-avater-content-info .avatar {
|
|
166
|
+
width: 74px;
|
|
167
|
+
height: 74px;
|
|
168
|
+
position: relative;
|
|
169
|
+
border-radius: 50%;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
margin-bottom: 10px;
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
}
|
|
176
|
+
.user-avater-content-info .avatar .arco-avatar {
|
|
177
|
+
width: 100%;
|
|
178
|
+
height: 100%;
|
|
179
|
+
}
|
|
180
|
+
.user-avater-content-info .nick-name {
|
|
181
|
+
font-size: 16px;
|
|
182
|
+
color: #1D2129;
|
|
183
|
+
font-weight: 500;
|
|
184
|
+
margin-bottom: 10px;
|
|
185
|
+
}
|
|
186
|
+
.user-avater-content-info .user-name,
|
|
187
|
+
.user-avater-content-info .user-email {
|
|
188
|
+
font-size: 14px;
|
|
189
|
+
color: #86909C;
|
|
190
|
+
margin-bottom: 10px;
|
|
191
|
+
}
|
|
192
|
+
.user-avater-content-info .org-alias {
|
|
193
|
+
border: 1px solid #EBEEF5;
|
|
194
|
+
padding: 10px 20px;
|
|
195
|
+
border-radius: 40px;
|
|
196
|
+
}
|
|
197
|
+
.user-avater-content-info .b_info_bottom {
|
|
198
|
+
height: 52px;
|
|
199
|
+
padding: 10px 16px;
|
|
200
|
+
width: 100%;
|
|
201
|
+
display: flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
justify-content: center;
|
|
204
|
+
}
|
|
205
|
+
.type-icons-container {
|
|
206
|
+
display: inline-block;
|
|
207
|
+
vertical-align: middle;
|
|
208
|
+
font-size: 18px;
|
|
209
|
+
}
|
|
210
|
+
.tooltip-button {
|
|
211
|
+
height: auto;
|
|
212
|
+
padding: 20px;
|
|
213
|
+
}
|
|
214
|
+
.add-content-modal-wrapper .arco-modal-header {
|
|
215
|
+
border-bottom: none;
|
|
216
|
+
}
|
|
217
|
+
.add-content-modal-body {
|
|
218
|
+
padding: 0;
|
|
219
|
+
height: 70vh;
|
|
220
|
+
}
|
|
221
|
+
.add-content-modal-body .content-tabs {
|
|
222
|
+
height: 100%;
|
|
223
|
+
}
|
|
224
|
+
.add-content-modal-body .arco-tabs-content {
|
|
225
|
+
padding-top: 0;
|
|
226
|
+
}
|
|
227
|
+
.tooltip-button {
|
|
228
|
+
height: auto;
|
|
229
|
+
padding: 20px;
|
|
230
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export { default } from './components';
|
|
2
|
-
export { default as button } from './button';
|
|
3
2
|
export { default as appCenter } from './appCenter';
|
|
3
|
+
export { default as messageBox } from './messageBox';
|
|
4
|
+
export { default as userAvater } from './userAvater';
|
|
5
|
+
export { default as typeIcons } from './typeIcons';
|
|
6
|
+
export { default as uploadStep } from './uploadStep';
|
|
7
|
+
export { default as contentModal } from './contentModal';
|
|
8
|
+
export { default as resourceModal } from './resourceModal';
|
package/es/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export { default } from "./components.js";
|
|
2
|
-
export { default as button } from "./button/index.js";
|
|
3
2
|
export { default as appCenter } from "./appCenter/index.js";
|
|
3
|
+
export { default as messageBox } from "./messageBox/index.js";
|
|
4
|
+
export { default as userAvater } from "./userAvater/index.js";
|
|
5
|
+
export { default as typeIcons } from "./typeIcons/index.js";
|
|
6
|
+
export { default as uploadStep } from "./uploadStep/index.js";
|
|
7
|
+
export { default as contentModal } from "./contentModal/index.js";
|
|
8
|
+
export { default as resourceModal } from "./resourceModal/index.js";
|
package/es/index.less
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
@import './style/index.less';
|
|
2
|
-
@import './button/style/index.less';
|
|
3
2
|
@import './appCenter/style/index.less';
|
|
3
|
+
@import './messageBox/style/index.less';
|
|
4
|
+
@import './userAvater/style/index.less';
|
|
5
|
+
@import './typeIcons/style/index.less';
|
|
6
|
+
@import './uploadStep/style/index.less';
|
|
7
|
+
@import './contentModal/style/index.less';
|
|
8
|
+
@import './resourceModal/style/index.less';
|
|
File without changes
|