@zgfe/modules-settings 1.0.1-a.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.
Files changed (97) hide show
  1. package/README.md +33 -0
  2. package/dist/esm/components/pageLoading/index.d.ts +3 -0
  3. package/dist/esm/components/pageLoading/index.js +11 -0
  4. package/dist/esm/components/pageLoading/index.less +11 -0
  5. package/dist/esm/constants/api.d.ts +30 -0
  6. package/dist/esm/constants/api.js +32 -0
  7. package/dist/esm/constants/icons/demo.css +539 -0
  8. package/dist/esm/constants/icons/demo_index.html +8537 -0
  9. package/dist/esm/constants/icons/iconfont.css +1467 -0
  10. package/dist/esm/constants/icons/iconfont.js +43 -0
  11. package/dist/esm/constants/icons/iconfont.json +2550 -0
  12. package/dist/esm/constants/icons/iconfont.ttf +0 -0
  13. package/dist/esm/constants/icons/iconfont.woff +0 -0
  14. package/dist/esm/constants/icons/iconfont.woff2 +0 -0
  15. package/dist/esm/constants/styles/base.sass +9 -0
  16. package/dist/esm/constants/styles/cleverUI.css +7 -0
  17. package/dist/esm/constants/styles/constants.sass +60 -0
  18. package/dist/esm/constants/styles/customUITheme.sass +54 -0
  19. package/dist/esm/constants/styles/reset.sass +61 -0
  20. package/dist/esm/global.d.ts +4 -0
  21. package/dist/esm/index.d.ts +3 -0
  22. package/dist/esm/index.js +3 -0
  23. package/dist/esm/modules/appSettings/appInfo/index.d.ts +3 -0
  24. package/dist/esm/modules/appSettings/appInfo/index.js +45 -0
  25. package/dist/esm/modules/appSettings/dataAccessFilter/index.d.ts +3 -0
  26. package/dist/esm/modules/appSettings/dataAccessFilter/index.js +37 -0
  27. package/dist/esm/modules/appSettings/index.d.ts +3 -0
  28. package/dist/esm/modules/appSettings/index.js +24 -0
  29. package/dist/esm/modules/appSettings/member/index.d.ts +3 -0
  30. package/dist/esm/modules/appSettings/member/index.js +29 -0
  31. package/dist/esm/modules/appSettings/secretKey/index.d.ts +3 -0
  32. package/dist/esm/modules/appSettings/secretKey/index.js +8 -0
  33. package/dist/esm/modules/companySetting/appList/index.d.ts +21 -0
  34. package/dist/esm/modules/companySetting/appList/index.js +386 -0
  35. package/dist/esm/modules/companySetting/appList/index.less +72 -0
  36. package/dist/esm/modules/companySetting/cost/index.d.ts +6 -0
  37. package/dist/esm/modules/companySetting/cost/index.js +79 -0
  38. package/dist/esm/modules/companySetting/cost/index.less +31 -0
  39. package/dist/esm/modules/companySetting/edit/authConfig.d.ts +9 -0
  40. package/dist/esm/modules/companySetting/edit/authConfig.js +333 -0
  41. package/dist/esm/modules/companySetting/edit/authConfigCEP.d.ts +10 -0
  42. package/dist/esm/modules/companySetting/edit/authConfigCEP.js +309 -0
  43. package/dist/esm/modules/companySetting/edit/authGroup.d.ts +7 -0
  44. package/dist/esm/modules/companySetting/edit/authGroup.js +89 -0
  45. package/dist/esm/modules/companySetting/edit/authModule.d.ts +7 -0
  46. package/dist/esm/modules/companySetting/edit/authModule.js +217 -0
  47. package/dist/esm/modules/companySetting/edit/multiAuthModule.d.ts +7 -0
  48. package/dist/esm/modules/companySetting/edit/multiAuthModule.js +150 -0
  49. package/dist/esm/modules/companySetting/edit/styles/authConfig.less +3 -0
  50. package/dist/esm/modules/companySetting/edit/styles/authGroup.less +10 -0
  51. package/dist/esm/modules/companySetting/edit/styles/authModule.less +82 -0
  52. package/dist/esm/modules/companySetting/edit/styles/user.less +32 -0
  53. package/dist/esm/modules/companySetting/edit/styles/userGroup.less +44 -0
  54. package/dist/esm/modules/companySetting/edit/user.d.ts +12 -0
  55. package/dist/esm/modules/companySetting/edit/user.js +222 -0
  56. package/dist/esm/modules/companySetting/edit/userGroup.d.ts +14 -0
  57. package/dist/esm/modules/companySetting/edit/userGroup.js +321 -0
  58. package/dist/esm/modules/companySetting/index.d.ts +18 -0
  59. package/dist/esm/modules/companySetting/index.js +492 -0
  60. package/dist/esm/modules/companySetting/index.less +24 -0
  61. package/dist/esm/modules/companySetting/info/index.d.ts +6 -0
  62. package/dist/esm/modules/companySetting/info/index.js +105 -0
  63. package/dist/esm/modules/companySetting/info/index.less +35 -0
  64. package/dist/esm/modules/companySetting/style/common.less +68 -0
  65. package/dist/esm/modules/companySetting/user/index.d.ts +29 -0
  66. package/dist/esm/modules/companySetting/user/index.js +548 -0
  67. package/dist/esm/modules/companySetting/user/index.less +161 -0
  68. package/dist/esm/modules/companySetting/user/invite.d.ts +8 -0
  69. package/dist/esm/modules/companySetting/user/invite.js +171 -0
  70. package/dist/esm/modules/companySetting/userGroup/authConfigDetail.d.ts +16 -0
  71. package/dist/esm/modules/companySetting/userGroup/authConfigDetail.js +379 -0
  72. package/dist/esm/modules/companySetting/userGroup/groupItem.d.ts +11 -0
  73. package/dist/esm/modules/companySetting/userGroup/groupItem.js +140 -0
  74. package/dist/esm/modules/companySetting/userGroup/index.d.ts +13 -0
  75. package/dist/esm/modules/companySetting/userGroup/index.js +142 -0
  76. package/dist/esm/modules/companySetting/userGroup/index.less +6 -0
  77. package/dist/esm/modules/companySetting/userGroup/style/authConfigDetail.less +44 -0
  78. package/dist/esm/modules/companySetting/userGroup/style/index.less +79 -0
  79. package/dist/esm/modules/dsfdsf +0 -0
  80. package/dist/esm/modules/personalSetting/index.d.ts +4 -0
  81. package/dist/esm/modules/personalSetting/index.js +17 -0
  82. package/dist/esm/modules/personalSetting/index.less +1 -0
  83. package/dist/esm/modules/personalSetting/info/index.d.ts +3 -0
  84. package/dist/esm/modules/personalSetting/info/index.js +83 -0
  85. package/dist/esm/modules/personalSetting/reset/index.d.ts +3 -0
  86. package/dist/esm/modules/personalSetting/reset/index.js +93 -0
  87. package/dist/esm/utils/ajax.d.ts +3 -0
  88. package/dist/esm/utils/ajax.js +5 -0
  89. package/dist/esm/utils/base64.d.ts +11 -0
  90. package/dist/esm/utils/base64.js +128 -0
  91. package/dist/esm/utils/constants.d.ts +160 -0
  92. package/dist/esm/utils/constants.js +282 -0
  93. package/dist/esm/utils/functionalPermissions.d.ts +385 -0
  94. package/dist/esm/utils/functionalPermissions.js +407 -0
  95. package/dist/esm/utils/util.d.ts +209 -0
  96. package/dist/esm/utils/util.js +649 -0
  97. package/package.json +56 -0
@@ -0,0 +1,160 @@
1
+ declare const _default: {
2
+ uri: {
3
+ mainWebSite: string;
4
+ demoWebSite: string;
5
+ demoGuideUrl: string;
6
+ oldWebSite: string;
7
+ };
8
+ version: {
9
+ basic: number;
10
+ basic_pro: number;
11
+ pro: number;
12
+ ep: number;
13
+ pro_trial: number;
14
+ };
15
+ versionStr: {
16
+ 1: string;
17
+ 8: string;
18
+ 9: string;
19
+ 10: string;
20
+ 11: string;
21
+ };
22
+ versionName: {
23
+ basic: string;
24
+ basic_pro: string;
25
+ pro: string;
26
+ ep: string;
27
+ pro_trial: string;
28
+ };
29
+ eventOwner: {
30
+ custom: string;
31
+ fixed: string;
32
+ };
33
+ modelMap: {
34
+ whole: string;
35
+ event: string;
36
+ funnel: string;
37
+ channel: string;
38
+ };
39
+ plat: {
40
+ all: number;
41
+ android: number;
42
+ ios: number;
43
+ js: number;
44
+ };
45
+ platName: {
46
+ 0: string;
47
+ 1: string;
48
+ 2: string;
49
+ 3: string;
50
+ };
51
+ menusName: {
52
+ panel: string;
53
+ dataPanel: string;
54
+ dataV: string;
55
+ dataview: string;
56
+ scene: string;
57
+ userGrowth: string;
58
+ channel: string;
59
+ pathAnalysis: string;
60
+ retention: string;
61
+ revenue: string;
62
+ advertisement: string;
63
+ sem: string;
64
+ digital: string;
65
+ landing: string;
66
+ iteration: string;
67
+ stickiness: string;
68
+ version: string;
69
+ crash: string;
70
+ zgSee: string;
71
+ wechat: string;
72
+ wxWhole: string;
73
+ wxFlow: string;
74
+ wxMini: string;
75
+ wxMarketing: string;
76
+ analysis: string;
77
+ wholeAnalysis: string;
78
+ eventAnalysis: string;
79
+ insight: string;
80
+ intervalAnalysis: string;
81
+ funnel: string;
82
+ page: string;
83
+ diy: string;
84
+ sqlQuery: string;
85
+ user: string;
86
+ userList: string;
87
+ userGroup: string;
88
+ userPortrait: string;
89
+ market: string;
90
+ manage: string;
91
+ dataAccess: string;
92
+ dataset: string;
93
+ idmapping: string;
94
+ eventTracking: string;
95
+ warning: string;
96
+ customScene: string;
97
+ config: string;
98
+ userTags: string;
99
+ demoManage: string;
100
+ };
101
+ appRoleType: {
102
+ appAdmin: number;
103
+ engineer: number;
104
+ normal: number;
105
+ onlyBoard: number;
106
+ };
107
+ storageKey: {
108
+ appList: string;
109
+ currentApp: string;
110
+ userData: string;
111
+ queryParamCacheStr: string;
112
+ };
113
+ regExp: {
114
+ url: RegExp;
115
+ phone: RegExp;
116
+ email: RegExp;
117
+ password: RegExp;
118
+ code: RegExp;
119
+ userName: RegExp;
120
+ teamAndAppName: RegExp;
121
+ sourceMediumName: RegExp;
122
+ account: RegExp;
123
+ };
124
+ chartsColor: string[];
125
+ mktRoleType: {
126
+ noPermission: number;
127
+ operation: number;
128
+ admin: number;
129
+ };
130
+ zgseeRoleType: {
131
+ havePermission: number;
132
+ noPermission: number;
133
+ };
134
+ channelMap: {
135
+ source: string;
136
+ medium: string;
137
+ campaign: string;
138
+ content: string;
139
+ term: string;
140
+ landingPage: string;
141
+ website: string;
142
+ refererUrl: string;
143
+ };
144
+ functionOpts: {
145
+ crud: string;
146
+ mktAdmin: string;
147
+ mktOps: string;
148
+ all: string;
149
+ };
150
+ orderTypeMap: {
151
+ datainType: string;
152
+ datainBasic: string;
153
+ datainAdvanced: string;
154
+ };
155
+ mapUsable: {
156
+ target: string[];
157
+ dimension: string[];
158
+ };
159
+ };
160
+ export default _default;
@@ -0,0 +1,282 @@
1
+ var uri = {
2
+ mainWebSite: 'https://zhugeio.com/',
3
+ demoWebSite: 'https://demo.zhugeio.com/',
4
+ demoGuideUrl: 'https://demo.zhugeio.com/?https://demo.zhugeio.com/app/',
5
+ oldWebSite: 'https://analysis.zhugeio.com/'
6
+ };
7
+
8
+ /**
9
+ * 版本
10
+ */
11
+ var version = {
12
+ basic: 1,
13
+ // 过期用户
14
+ basic_pro: 9,
15
+ // 基础版
16
+ pro: 10,
17
+ // 专业版
18
+ ep: 11,
19
+ // 企业版
20
+ pro_trial: 8 // 试用版
21
+ };
22
+
23
+ var versionStr = {
24
+ 1: 'basic',
25
+ 8: 'pro_trial',
26
+ // 试用版
27
+ 9: 'basic_pro',
28
+ 10: 'pro',
29
+ 11: 'ep'
30
+ };
31
+ var channelMap = {
32
+ source: 'channel_utm_source',
33
+ //来源
34
+ medium: 'channel_utm_medium',
35
+ //媒介
36
+ campaign: 'channel_utm_campaign',
37
+ //活动
38
+ content: 'channel_utm_content',
39
+ //内容
40
+ term: 'channel_utm_term',
41
+ //关键字
42
+ landingPage: 'channel_current_url',
43
+ //落地页
44
+ website: 'channel_website',
45
+ //来源域名
46
+ refererUrl: 'channel_referer_url' //来源url
47
+ };
48
+
49
+ var orderTypeMap = {
50
+ datainType: 'datainType',
51
+ // 接入项分类
52
+ datainBasic: 'datainBasic',
53
+ // 基础接入项
54
+ datainAdvanced: 'datainAdvanced' // 高级接入项
55
+ };
56
+
57
+ var versionName = {
58
+ basic: '过期用户',
59
+ basic_pro: '基础版',
60
+ pro: '专业版',
61
+ ep: '企业版',
62
+ pro_trial: '试用版'
63
+ };
64
+ // 地图支持的指标和细分
65
+ var mapUsable = {
66
+ target: ['number', 'times', 'per', 'sum', 'avg'],
67
+ // 人数、次数、人均次数、总和、均值
68
+ dimension: ['area', 'city', 'current_area', 'current_city'] // 省份触发环境、城市触发环境、省份用户内置属性、城市用户内置属性
69
+ };
70
+
71
+ var eventOwner = {
72
+ custom: 'zg',
73
+ // 自定义事件
74
+ fixed: 'zg_abp' // 内置事件
75
+ };
76
+ // 分析模块映射值
77
+ var modelMap = {
78
+ whole: 'whole',
79
+ event: 'event',
80
+ funnel: 'funnel',
81
+ channel: 'channel'
82
+ };
83
+ /**
84
+ * 平台
85
+ */
86
+ var plat = {
87
+ all: 0,
88
+ android: 1,
89
+ ios: 2,
90
+ js: 3
91
+ };
92
+ var platName = {
93
+ 0: 'all',
94
+ 1: 'android',
95
+ 2: 'ios',
96
+ 3: 'js'
97
+ };
98
+ /**
99
+ * 菜单名称
100
+ */
101
+ var menusName = {
102
+ panel: 'panel',
103
+ // 看板
104
+ dataPanel: 'dataPanel',
105
+ // 数据看板
106
+ dataV: 'dataV',
107
+ // 数据大屏
108
+ dataview: 'dataview',
109
+ // 实时概览
110
+ scene: 'scene',
111
+ // 场景分析
112
+ userGrowth: 'userGrowth',
113
+ // 用户增长2A3R
114
+ channel: 'channel',
115
+ // 获取
116
+ pathAnalysis: 'pathAnalysis',
117
+ // 路径
118
+ retention: 'retention',
119
+ // 留存
120
+ revenue: 'revenue',
121
+ // 收入
122
+ advertisement: 'advertisement',
123
+ // 广告监测
124
+ sem: 'sem',
125
+ // SEM
126
+ digital: 'digital',
127
+ // 数字广告
128
+ landing: 'landing',
129
+ // 落地页
130
+ iteration: 'iteration',
131
+ // 产品迭代
132
+ stickiness: 'stickiness',
133
+ // 粘性
134
+ version: 'version',
135
+ // 版本
136
+ crash: 'crash',
137
+ // 崩溃
138
+ zgSee: 'zgSee',
139
+ // 视屏
140
+ wechat: 'wechat',
141
+ // 微信生态
142
+ wxWhole: 'wxWhole',
143
+ // 矩阵图
144
+ wxFlow: 'wxFlow',
145
+ // 趋势分析
146
+ wxMini: 'wxMini',
147
+ // 用户分享
148
+ wxMarketing: 'wxMarketing',
149
+ // 自动推送
150
+ analysis: 'analysis',
151
+ // 通用分析
152
+ wholeAnalysis: 'wholeAnalysis',
153
+ // 整体
154
+ eventAnalysis: 'eventAnalysis',
155
+ // 事件
156
+ insight: 'insight',
157
+ // 洞察
158
+ intervalAnalysis: 'intervalAnalysis',
159
+ // 间隔分析
160
+ funnel: 'funnel',
161
+ // 漏斗
162
+ page: 'page',
163
+ // 页面
164
+ diy: 'diy',
165
+ // 自定义指标
166
+ sqlQuery: 'sqlQuery',
167
+ // SQL查询平台
168
+ user: 'user',
169
+ // 用户
170
+ userList: 'userList',
171
+ // 用户列表
172
+ userGroup: 'userGroup',
173
+ // 用户分群
174
+ userPortrait: 'userPortrait',
175
+ // 用户画像
176
+ market: 'market',
177
+ // 智能触达
178
+ manage: 'manage',
179
+ // 数据管理
180
+ dataAccess: 'dataAccess',
181
+ // 数据管理-数据接入
182
+ dataset: 'dataset',
183
+ // 数据集
184
+ idmapping: 'idmapping',
185
+ // id-mapping
186
+ // guide: 'guide', // 数据管理-数据接入-数据接入
187
+ // adChannel: 'adChannel', // 广告渠道接入
188
+ // debug: 'debug', // 实时调试
189
+ // plan: 'plan', //埋点方案
190
+ eventTracking: 'eventTracking',
191
+ // 埋点管理
192
+ warning: 'warning',
193
+ // 数据预警
194
+ customScene: 'customScene',
195
+ // 常用场景
196
+ config: 'config',
197
+ // 来源配置
198
+ userTags: 'userTags',
199
+ //用户标签
200
+ demoManage: 'demoManage' // 测试数据
201
+ };
202
+ /**
203
+ * 用户应用层面角色: 3应用管理员, 4开发者 2普通用户 0仅看板
204
+ */
205
+ var appRoleType = {
206
+ appAdmin: 3,
207
+ engineer: 4,
208
+ normal: 2,
209
+ onlyBoard: 0
210
+ };
211
+ /*
212
+ 智能触达角色权限 0无权访问 1运营人员 2管理员
213
+ */
214
+ var mktRoleType = {
215
+ noPermission: 0,
216
+ operation: 1,
217
+ admin: 2
218
+ };
219
+ /*
220
+ zgSee权限 1可以查看 0无权查看
221
+ */
222
+ var zgseeRoleType = {
223
+ havePermission: 1,
224
+ noPermission: 0
225
+ };
226
+ /**
227
+ * spa内需要维护的缓存数据key
228
+ */
229
+ var storageKey = {
230
+ appList: 'appList',
231
+ currentApp: 'currentApp',
232
+ userData: 'userData',
233
+ queryParamCacheStr: 'queryParamCacheStr'
234
+ };
235
+ /**
236
+ * 常用正则
237
+ */
238
+ var regExp = {
239
+ url: /^((http:\/\/)|(https:\/\/)|(\/\/))[A-Za-z0-9]/,
240
+ phone: /^1[3-9]\d\d{8}$/,
241
+ email: /^[A-Za-z0-9]+([._-]*[A-Za-z0-9])*@([A-Za-z0-9]+[-a-z0-9]*[A-Za-z0-9]+\.){1,63}[A-Za-z0-9]+$/,
242
+ password: /^\S{6,20}$/,
243
+ code: /^\d{4}$/,
244
+ userName: /^.{1,10}$/,
245
+ teamAndAppName: /^.{1,20}$/,
246
+ sourceMediumName: /^.{1,100}$/,
247
+ account: /^[0-9a-zA-Z_.@]{5,30}$/
248
+ };
249
+ /**
250
+ * echart 颜色库
251
+ */
252
+ var chartsColor = ['#00a0e9', '#f4b93b', '#85bd41', '#f29c9f', '#8f82bc', '#0068b7', '#f29b76', '#13b5b1', '#ea68a2', '#fff100', '#1ec0ff', '#f9a11b', '#8cd790', '#40ccca', '#aaabd3', '#2b90d9', '#ec7a4a', '#f29b76', '#ea68a2', '#ffdd38'];
253
+ /*
254
+ * 权限管理功能模块常量
255
+ */
256
+ var functionOpts = {
257
+ crud: 'crud',
258
+ mktAdmin: 'mkt_admin',
259
+ mktOps: 'mkt_ops',
260
+ all: 'all'
261
+ };
262
+ export default {
263
+ uri: uri,
264
+ version: version,
265
+ versionStr: versionStr,
266
+ versionName: versionName,
267
+ eventOwner: eventOwner,
268
+ modelMap: modelMap,
269
+ plat: plat,
270
+ platName: platName,
271
+ menusName: menusName,
272
+ appRoleType: appRoleType,
273
+ storageKey: storageKey,
274
+ regExp: regExp,
275
+ chartsColor: chartsColor,
276
+ mktRoleType: mktRoleType,
277
+ zgseeRoleType: zgseeRoleType,
278
+ channelMap: channelMap,
279
+ functionOpts: functionOpts,
280
+ orderTypeMap: orderTypeMap,
281
+ mapUsable: mapUsable
282
+ };