@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.
Files changed (170) hide show
  1. package/dist/index.css +141 -5
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/component.js +3 -2
  4. package/es/appCenter/script/routeMap.d.ts +1 -1
  5. package/es/appCenter/style/index.css +1 -1
  6. package/es/appCenter/style/index.less +1 -1
  7. package/es/config.d.ts +2 -0
  8. package/es/config.js +3 -0
  9. package/es/contentModal/component.d.ts +0 -0
  10. package/es/contentModal/component.js +175 -0
  11. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  12. package/es/contentModal/components/CompoList/CompoFilter/index.js +103 -0
  13. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  14. package/es/contentModal/components/CompoList/index.js +234 -0
  15. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  16. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +44 -0
  17. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  18. package/es/contentModal/components/ViewAllColumn/columnTree/index.js +101 -0
  19. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  20. package/es/contentModal/components/ViewAllColumn/index.js +277 -0
  21. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  22. package/es/contentModal/components/storeBox/index.js +107 -0
  23. package/es/contentModal/index.d.ts +2 -0
  24. package/es/contentModal/index.js +7 -0
  25. package/es/contentModal/script/api.d.ts +10 -0
  26. package/es/contentModal/script/api.js +45 -0
  27. package/es/contentModal/style/MediaFilter.less +8 -0
  28. package/es/contentModal/style/ViewAllColumn.less +33 -0
  29. package/es/contentModal/style/columnTree.less +9 -0
  30. package/es/contentModal/style/css.js +5 -0
  31. package/es/contentModal/style/index.css +13 -0
  32. package/es/contentModal/style/index.d.ts +5 -0
  33. package/es/contentModal/style/index.js +5 -0
  34. package/es/contentModal/style/index.less +16 -0
  35. package/es/contentModal/style/storeBox.less +45 -0
  36. package/es/hooks/batch.d.ts +8 -0
  37. package/es/hooks/batch.js +26 -0
  38. package/es/hooks/user.d.ts +11 -0
  39. package/es/hooks/user.js +46 -0
  40. package/es/index.css +141 -5
  41. package/es/index.d.ts +6 -1
  42. package/es/index.js +6 -1
  43. package/es/index.less +6 -1
  44. package/es/messageBox/component.d.ts +0 -0
  45. package/es/messageBox/component.js +146 -0
  46. package/es/messageBox/index.d.ts +2 -0
  47. package/es/messageBox/index.js +7 -0
  48. package/es/messageBox/list.d.ts +0 -0
  49. package/es/messageBox/list.js +116 -0
  50. package/es/messageBox/script/api.d.ts +6 -0
  51. package/es/messageBox/script/api.js +16 -0
  52. package/es/messageBox/style/index.css +64 -0
  53. package/es/messageBox/style/index.less +71 -0
  54. package/es/resourceModal/component.d.ts +0 -0
  55. package/es/resourceModal/component.js +14 -0
  56. package/es/resourceModal/index.d.ts +2 -0
  57. package/es/resourceModal/index.js +7 -0
  58. package/es/resourceModal/style/css.js +1 -0
  59. package/es/resourceModal/style/index.d.ts +1 -0
  60. package/es/resourceModal/style/index.js +1 -0
  61. package/es/style.css +5 -0
  62. package/es/typeIcons/component.d.ts +0 -0
  63. package/es/typeIcons/component.js +62 -0
  64. package/es/typeIcons/index.d.ts +2 -0
  65. package/es/typeIcons/index.js +7 -0
  66. package/es/typeIcons/style/css.js +1 -0
  67. package/es/typeIcons/style/index.css +5 -0
  68. package/es/typeIcons/style/index.d.ts +1 -0
  69. package/es/typeIcons/style/index.js +1 -0
  70. package/es/typeIcons/style/index.less +5 -0
  71. package/es/uploadStep/component.d.ts +0 -0
  72. package/es/uploadStep/component.js +14 -0
  73. package/es/uploadStep/index.d.ts +2 -0
  74. package/es/uploadStep/index.js +7 -0
  75. package/es/uploadStep/style/css.js +1 -0
  76. package/es/uploadStep/style/index.d.ts +1 -0
  77. package/es/uploadStep/style/index.js +1 -0
  78. package/es/userAvater/component.d.ts +0 -0
  79. package/es/userAvater/component.js +167 -0
  80. package/es/userAvater/index.d.ts +2 -0
  81. package/es/userAvater/index.js +7 -0
  82. package/es/userAvater/script/api.d.ts +8 -0
  83. package/es/userAvater/script/api.js +32 -0
  84. package/es/userAvater/style/css.js +1 -0
  85. package/es/userAvater/style/index.css +50 -0
  86. package/es/userAvater/style/index.d.ts +1 -0
  87. package/es/userAvater/style/index.js +1 -0
  88. package/es/userAvater/style/index.less +54 -0
  89. package/es/utils/index.d.ts +1 -0
  90. package/es/utils/index.js +7 -0
  91. package/es/utils/request.js +1 -1
  92. package/es/utils/typeMap.d.ts +116 -0
  93. package/es/utils/typeMap.js +22 -0
  94. package/lib/appCenter/component.js +3 -2
  95. package/lib/appCenter/style/index.css +1 -1
  96. package/lib/appCenter/style/index.less +1 -1
  97. package/lib/config.js +6 -0
  98. package/lib/contentModal/component.js +176 -0
  99. package/lib/contentModal/components/CompoList/CompoFilter/index.js +104 -0
  100. package/lib/contentModal/components/CompoList/index.js +235 -0
  101. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +45 -0
  102. package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +102 -0
  103. package/lib/contentModal/components/ViewAllColumn/index.js +278 -0
  104. package/lib/contentModal/components/storeBox/index.js +108 -0
  105. package/lib/contentModal/index.js +8 -0
  106. package/lib/contentModal/script/api.js +52 -0
  107. package/lib/contentModal/style/MediaFilter.less +8 -0
  108. package/lib/contentModal/style/ViewAllColumn.less +33 -0
  109. package/lib/contentModal/style/columnTree.less +9 -0
  110. package/lib/contentModal/style/css.js +6 -0
  111. package/lib/contentModal/style/index.css +13 -0
  112. package/lib/contentModal/style/index.js +6 -0
  113. package/lib/contentModal/style/index.less +16 -0
  114. package/lib/contentModal/style/storeBox.less +45 -0
  115. package/lib/hooks/batch.js +27 -0
  116. package/lib/hooks/user.js +49 -0
  117. package/lib/index.css +141 -5
  118. package/lib/index.js +14 -4
  119. package/lib/index.less +6 -1
  120. package/lib/messageBox/component.js +147 -0
  121. package/lib/messageBox/index.js +8 -0
  122. package/lib/messageBox/list.js +117 -0
  123. package/lib/messageBox/script/api.js +19 -0
  124. package/lib/messageBox/style/index.css +64 -0
  125. package/lib/messageBox/style/index.less +71 -0
  126. package/lib/resourceModal/component.js +15 -0
  127. package/lib/resourceModal/index.js +8 -0
  128. package/lib/resourceModal/style/css.js +2 -0
  129. package/lib/resourceModal/style/index.css +4 -0
  130. package/lib/resourceModal/style/index.js +2 -0
  131. package/lib/resourceModal/style/index.less +4 -0
  132. package/lib/typeIcons/component.js +63 -0
  133. package/lib/{button → typeIcons}/index.js +2 -2
  134. package/lib/typeIcons/style/css.js +2 -0
  135. package/lib/typeIcons/style/index.css +5 -0
  136. package/lib/typeIcons/style/index.js +2 -0
  137. package/lib/typeIcons/style/index.less +5 -0
  138. package/lib/uploadStep/component.js +15 -0
  139. package/lib/uploadStep/index.js +8 -0
  140. package/lib/uploadStep/style/css.js +2 -0
  141. package/lib/uploadStep/style/index.css +4 -0
  142. package/lib/uploadStep/style/index.js +2 -0
  143. package/lib/uploadStep/style/index.less +4 -0
  144. package/lib/userAvater/component.js +168 -0
  145. package/lib/userAvater/index.js +8 -0
  146. package/lib/userAvater/script/api.js +37 -0
  147. package/lib/userAvater/style/css.js +2 -0
  148. package/lib/userAvater/style/index.css +50 -0
  149. package/lib/userAvater/style/index.js +2 -0
  150. package/lib/userAvater/style/index.less +54 -0
  151. package/lib/utils/index.js +13 -0
  152. package/lib/utils/request.js +1 -1
  153. package/lib/utils/typeMap.js +25 -0
  154. package/package.json +4 -2
  155. package/es/_virtual/plugin-vue_export-helper.js +0 -7
  156. package/es/button/component.d.ts +0 -24
  157. package/es/button/component.js +0 -43
  158. package/es/button/index.d.ts +0 -103
  159. package/es/button/index.js +0 -7
  160. package/lib/_virtual/plugin-vue_export-helper.js +0 -8
  161. package/lib/button/component.js +0 -44
  162. /package/es/{button → messageBox}/style/css.js +0 -0
  163. /package/es/{button → messageBox}/style/index.d.ts +0 -0
  164. /package/es/{button → messageBox}/style/index.js +0 -0
  165. /package/es/{button → resourceModal}/style/index.css +0 -0
  166. /package/es/{button → resourceModal}/style/index.less +0 -0
  167. /package/{lib/button → es/uploadStep}/style/index.css +0 -0
  168. /package/{lib/button → es/uploadStep}/style/index.less +0 -0
  169. /package/lib/{button → messageBox}/style/css.js +0 -0
  170. /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,2 @@
1
+ declare const userAvater: any;
2
+ export default userAvater;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./component.js";
2
+ const userAvater = Object.assign(_sfc_main, {
3
+ install: (app) => {
4
+ app.component(_sfc_main.name, _sfc_main);
5
+ }
6
+ });
7
+ export { userAvater 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;
@@ -0,0 +1,7 @@
1
+ import dayjs from "dayjs";
2
+ const dateYYYYDDMMHHmm = (date) => {
3
+ if (!date)
4
+ return "--";
5
+ return dayjs(date).format("YYYY-DD-MM HH:mm");
6
+ };
7
+ export { dateYYYYDDMMHHmm };
@@ -27,7 +27,7 @@ function request(BASE_API, options) {
27
27
  return res;
28
28
  },
29
29
  (error) => {
30
- console.log("err" + error);
30
+ console.log(`err${error}`);
31
31
  return Promise.reject(error);
32
32
  }
33
33
  );
@@ -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: "app-list-wrap apps-popover" };
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 || "https://site.cmstop.xyz";
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) => {
@@ -4,7 +4,7 @@
4
4
  border-radius: 4px;
5
5
  color: #5f5f5f;
6
6
  }
7
- .app-list-wrap {
7
+ .apps-box-popover {
8
8
  position: relative;
9
9
  padding: 10px;
10
10
  }
@@ -4,7 +4,7 @@
4
4
  border-radius: 4px;
5
5
  color: #5f5f5f;
6
6
  }
7
- .app-list-wrap {
7
+ .apps-box-popover {
8
8
  position: relative;
9
9
  padding: 10px;
10
10
  }
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;