@steedos-labs/content-compliance 1.0.9 → 1.0.10
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.js +1 -1
- package/lib/actions/index.d.ts +1 -0
- package/lib/actions/index.js +1 -0
- package/lib/actions/index.js.map +1 -1
- package/lib/actions/retryContentHubPush.d.ts +9 -0
- package/lib/actions/retryContentHubPush.js +43 -0
- package/lib/actions/retryContentHubPush.js.map +1 -0
- package/lib/methods/__tests__/contentHubPush.test.js +258 -5
- package/lib/methods/__tests__/contentHubPush.test.js.map +1 -1
- package/lib/methods/approval_engine.js +20 -6
- package/lib/methods/approval_engine.js.map +1 -1
- package/lib/methods/content_hub.d.ts +6 -0
- package/lib/methods/content_hub.js +183 -90
- package/lib/methods/content_hub.js.map +1 -1
- package/lib/methods/content_hub_sync_rule.d.ts +1 -0
- package/lib/methods/content_hub_sync_rule.js +24 -1
- package/lib/methods/content_hub_sync_rule.js.map +1 -1
- package/main/default/objects/pepesio_ch__c/buttons/retry_content_hub_push.button.yml +70 -0
- package/main/default/objects/pepesio_ch__c/fields/pepsico_material.field.yml +7 -0
- package/main/default/objects/pepesio_ch__c/listviews/all.listview.yml +1 -0
- package/main/default/objects/pepsico_ch_sync_rule/fields/spot_check.field.yml +1 -1
- package/package.json +1 -1
- package/public/dynamic.css +73 -10
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
name: retry_content_hub_push
|
|
2
|
+
amis_schema: |-
|
|
3
|
+
{
|
|
4
|
+
"type": "service",
|
|
5
|
+
"body": [
|
|
6
|
+
{
|
|
7
|
+
"type": "button",
|
|
8
|
+
"label": "重新推送",
|
|
9
|
+
"id": "u:retry_content_hub_push",
|
|
10
|
+
"editorState": "default",
|
|
11
|
+
"confirmText": "确认要重新推送该文件到 Content Hub 吗?",
|
|
12
|
+
"onEvent": {
|
|
13
|
+
"click": {
|
|
14
|
+
"weight": 0,
|
|
15
|
+
"actions": [
|
|
16
|
+
{
|
|
17
|
+
"ignoreError": false,
|
|
18
|
+
"actionType": "ajax",
|
|
19
|
+
"outputVar": "responseResult",
|
|
20
|
+
"options": {},
|
|
21
|
+
"api": {
|
|
22
|
+
"url": "/api/pepsico-content/content-hub/push-record/retry",
|
|
23
|
+
"method": "post",
|
|
24
|
+
"requestAdaptor": "\napi.data = {\n id: context._id\n}\n\nreturn api;",
|
|
25
|
+
"adaptor": "",
|
|
26
|
+
"messages": {
|
|
27
|
+
"success": "重新推送成功",
|
|
28
|
+
"failed": "重新推送失败"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"actionType": "broadcast",
|
|
34
|
+
"args": {
|
|
35
|
+
"eventName": "@data.changed.pepesio_ch__c"
|
|
36
|
+
},
|
|
37
|
+
"data": {
|
|
38
|
+
"objectName": "pepesio_ch__c"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"visibleOn": "${push_status == 'failed' && global.user.is_space_admin}"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"regions": [
|
|
48
|
+
"body"
|
|
49
|
+
],
|
|
50
|
+
"data": {
|
|
51
|
+
"context": {},
|
|
52
|
+
"dataComponentId": "",
|
|
53
|
+
"record_id": "",
|
|
54
|
+
"record": {},
|
|
55
|
+
"permissions": {}
|
|
56
|
+
},
|
|
57
|
+
"bodyClassName": "p-0",
|
|
58
|
+
"id": "u:retry_content_hub_push_service",
|
|
59
|
+
"dsType": "api",
|
|
60
|
+
"asideResizor": false,
|
|
61
|
+
"editorState": "default",
|
|
62
|
+
"pullRefresh": {
|
|
63
|
+
"disabled": true
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
is_enable: true
|
|
67
|
+
label: 重新推送
|
|
68
|
+
'on': record
|
|
69
|
+
type: amis_button
|
|
70
|
+
visible: true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: spot_check
|
|
2
|
-
description: 「抽查核准」匹配靠素材抽查核准后推送的单据(跳过审核的 KOL 尾部等); 「审核通过」匹配确认上线时推送的单据;
|
|
2
|
+
description: 「抽查核准」匹配靠素材抽查核准后推送的单据(跳过审核的 KOL 尾部等); 「审核通过」匹配确认上线时推送的单据; 不填表示两种都匹配。只影响填单时带出的默认值; 申请单上勾了同步但没有命中任何同步规则时, 按「审核通过」推送
|
|
3
3
|
group: 匹配条件
|
|
4
4
|
label: 推送节点
|
|
5
5
|
options:
|
package/package.json
CHANGED
package/public/dynamic.css
CHANGED
|
@@ -59,15 +59,30 @@ form>.rounded-md.shadow-sm>.-mt-px{
|
|
|
59
59
|
#loginId,
|
|
60
60
|
#password{
|
|
61
61
|
height: 44px;
|
|
62
|
-
border-radius:
|
|
62
|
+
border-radius: 8px !important;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
/*
|
|
65
|
+
/* 输入框聚焦:2px 主题色边框(1px 边框 + 1px 同色描边,不改变尺寸) */
|
|
66
66
|
#loginId:focus,
|
|
67
67
|
#password:focus{
|
|
68
68
|
outline: none;
|
|
69
69
|
border-color: rgb(2 53 90);
|
|
70
|
-
box-shadow: 0 0 0
|
|
70
|
+
box-shadow: 0 0 0 1px rgb(2 53 90);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* 参照 Content Hub:输入框无边框、浅灰底,聚焦时底色变白(仅桌面端,手机端保持原样) */
|
|
74
|
+
@media (min-width: 769px) {
|
|
75
|
+
#loginId,
|
|
76
|
+
#password{
|
|
77
|
+
border-color: #f2f3f5;
|
|
78
|
+
background-color: #f2f3f5;
|
|
79
|
+
transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
|
|
80
|
+
}
|
|
81
|
+
#loginId:focus,
|
|
82
|
+
#password:focus{
|
|
83
|
+
border-color: rgb(2 53 90);
|
|
84
|
+
background-color: #ffffff;
|
|
85
|
+
}
|
|
71
86
|
}
|
|
72
87
|
|
|
73
88
|
.mt-6.flex.justify-end button{
|
|
@@ -76,6 +91,21 @@ form>.rounded-md.shadow-sm>.-mt-px{
|
|
|
76
91
|
color: rgb(2 53 90 / var(--tw-bg-opacity));
|
|
77
92
|
font-weight: 400;
|
|
78
93
|
height: 44px;
|
|
94
|
+
border-radius: 8px;
|
|
95
|
+
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* 「非百事员工登录」悬停:由描边变为深蓝实心 + 淡阴影;按下再深一点 */
|
|
99
|
+
.mt-6.flex.justify-end button:hover{
|
|
100
|
+
background-color: rgb(2 53 90);
|
|
101
|
+
color: #ffffff;
|
|
102
|
+
box-shadow: 0 4px 12px rgb(2 53 90 / 25%);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.mt-6.flex.justify-end button:active{
|
|
106
|
+
background-color: #012a48;
|
|
107
|
+
color: #ffffff;
|
|
108
|
+
box-shadow: 0 1px 3px rgb(2 53 90 / 20%);
|
|
79
109
|
}
|
|
80
110
|
|
|
81
111
|
.flex:last-of-type {
|
|
@@ -86,6 +116,32 @@ form>.rounded-md.shadow-sm>.-mt-px{
|
|
|
86
116
|
background-color: rgb(2 53 90 / var(--tw-bg-opacity));
|
|
87
117
|
color: #ffffff !important;
|
|
88
118
|
height: 44px;
|
|
119
|
+
/* 边框与底色同色,避免平台默认的浅灰边框让按钮看起来比下方按钮小一圈;圆角与输入框、按钮统一为 8px */
|
|
120
|
+
border-color: rgb(2 53 90);
|
|
121
|
+
border-radius: 8px;
|
|
122
|
+
/* 淡阴影突出主按钮 */
|
|
123
|
+
box-shadow: 0 2px 6px rgb(2 53 90 / 15%);
|
|
124
|
+
transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* 「百事员工SSO登录」悬停:稍微变浅 + 阴影加深;按下:稍微变深 */
|
|
128
|
+
.flex:last-of-type>a:hover{
|
|
129
|
+
background-color: #0a4675;
|
|
130
|
+
border-color: #0a4675;
|
|
131
|
+
box-shadow: 0 4px 12px rgb(2 53 90 / 25%);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.flex:last-of-type>a:active{
|
|
135
|
+
background-color: #012a48;
|
|
136
|
+
border-color: #012a48;
|
|
137
|
+
box-shadow: 0 1px 3px rgb(2 53 90 / 20%);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* 键盘 Tab 切换到按钮时的焦点框(鼠标点击不显示) */
|
|
141
|
+
.flex:last-of-type>a:focus-visible,
|
|
142
|
+
.mt-6.flex.justify-end button:focus-visible{
|
|
143
|
+
outline: none;
|
|
144
|
+
box-shadow: 0 0 0 3px rgb(2 53 90 / 25%);
|
|
89
145
|
}
|
|
90
146
|
|
|
91
147
|
.mt-6.mb-6.relative {
|
|
@@ -116,6 +172,8 @@ form>.mt-6.mb-6.relative span{
|
|
|
116
172
|
.relative.rounded.p-10.sm\:shadow-md.bg-white.w-screen.max-w-md{
|
|
117
173
|
border-radius: 20px;
|
|
118
174
|
box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
|
|
175
|
+
/* logo 图片自带上方留白,上内边距由 40px 减为 32px,使视觉上的上下留白平衡 */
|
|
176
|
+
padding-top: 32px;
|
|
119
177
|
}
|
|
120
178
|
}
|
|
121
179
|
|
|
@@ -208,6 +266,8 @@ form{
|
|
|
208
266
|
margin-top: 20px;
|
|
209
267
|
font-size: 12px;
|
|
210
268
|
position: absolute;
|
|
269
|
+
/* 与「我已阅读并同意」文字左对齐:勾选框 14px + 右边距 5px + 文字左边距 5px */
|
|
270
|
+
left: 24px;
|
|
211
271
|
}
|
|
212
272
|
|
|
213
273
|
input{
|
|
@@ -217,24 +277,27 @@ input{
|
|
|
217
277
|
.account-apply-btn{
|
|
218
278
|
z-index: 999;
|
|
219
279
|
position: absolute;
|
|
220
|
-
/*
|
|
221
|
-
right: calc(2.5rem -
|
|
222
|
-
/*
|
|
223
|
-
bottom:
|
|
280
|
+
/* 减去左右内边距和 1px 边框,使文字与输入框右边缘对齐 */
|
|
281
|
+
right: calc(2.5rem - 9px);
|
|
282
|
+
/* 与左侧隐私勾选行垂直居中对齐(含上下 1px 边框) */
|
|
283
|
+
bottom: 37px;
|
|
224
284
|
padding: 2px 8px;
|
|
225
285
|
font-size: 12px;
|
|
226
286
|
line-height: 20px;
|
|
227
287
|
color: #4b5563;
|
|
228
288
|
background: transparent;
|
|
229
|
-
|
|
289
|
+
/* 默认透明边框占位,悬停时显示深蓝描边,避免尺寸跳动 */
|
|
290
|
+
border: 1px solid transparent;
|
|
230
291
|
border-radius: 4px;
|
|
231
292
|
cursor: pointer;
|
|
232
|
-
transition: background-color 0.2s, color 0.2s;
|
|
293
|
+
transition: background-color 0.2s, color 0.2s, border-color 0.2s;
|
|
233
294
|
}
|
|
234
295
|
|
|
296
|
+
/* 悬停:深蓝描边 + 深蓝字,与「非百事员工登录」的描边风格一致 */
|
|
235
297
|
.account-apply-btn:hover{
|
|
236
298
|
color: rgb(2 53 90);
|
|
237
|
-
background: #
|
|
299
|
+
background: #ffffff;
|
|
300
|
+
border-color: rgb(2 53 90);
|
|
238
301
|
}
|
|
239
302
|
|
|
240
303
|
.account-apply-modal{
|