Skip to content

Commit 1e17f20

Browse files
author
funcodingdev
committed
styles: 整理代码 hint 提示
1 parent 9ff6930 commit 1e17f20

264 files changed

Lines changed: 760 additions & 1517 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

nodes/WeCom/resources/accountId/index.ts

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ export const accountIdDescription: INodeProperties[] = [
100100
},
101101
default: 0,
102102
description: '企业授权的代开发自建应用或第三方应用的agentid',
103-
hint: '企业授权的代开发自建应用或第三方应用的agentid',
104103
},
105104
{
106105
displayName: 'Open Userid列表',
@@ -117,8 +116,7 @@ export const accountIdDescription: INodeProperties[] = [
117116
},
118117
},
119118
default: [],
120-
description: 'Open_userid列表,最多不超过1000个',
121-
hint: '必须是source_agentid对应的应用所获取的open_userid,多个值请使用"Add Value"按钮添加',
119+
description: 'Open_userid列表,最多不超过1000个。必须是source_agentid对应的应用所获取的open_userid,多个值请使用"Add Value"按钮添加',
122120
},
123121
{
124122
displayName: 'External Userid',
@@ -132,8 +130,7 @@ export const accountIdDescription: INodeProperties[] = [
132130
},
133131
},
134132
default: '',
135-
description: '服务商主体的external_userid',
136-
hint: '必须是source_agentid对应的应用所获取的external_userid',
133+
description: '服务商主体的external_userid。必须是source_agentid对应的应用所获取的external_userid',
137134
},
138135
{
139136
displayName: '业务类型',
@@ -216,8 +213,7 @@ export const accountIdDescription: INodeProperties[] = [
216213
},
217214
},
218215
default: [],
219-
description: '外部用户临时ID列表,最多不超过100个',
220-
hint: '外部用户临时id,多个值请使用"Add Value"按钮添加',
216+
description: '外部用户临时ID列表,最多不超过100个。外部用户临时ID,多个值请使用"Add Value"按钮添加',
221217
},
222218
{
223219
displayName: 'Provider Access Token',
@@ -234,8 +230,7 @@ export const accountIdDescription: INodeProperties[] = [
234230
},
235231
},
236232
default: '',
237-
description: '应用服务商的provider_access_token',
238-
hint: '应用服务商的provider_access_token,获取方法参见服务商的凭证',
233+
description: '应用服务商的provider_access_token,获取方法参见服务商的凭证',
239234
},
240235
{
241236
displayName: '企业ID',
@@ -250,7 +245,6 @@ export const accountIdDescription: INodeProperties[] = [
250245
},
251246
default: '',
252247
description: '待获取的企业ID',
253-
hint: '待获取的企业ID',
254248
},
255249
{
256250
displayName: 'Userid列表',
@@ -267,8 +261,7 @@ export const accountIdDescription: INodeProperties[] = [
267261
},
268262
},
269263
default: [],
270-
description: '获取到的成员ID列表,最多不超过1000个',
271-
hint: '获取到的成员ID列表,最多不超过1000个,多个值请使用"Add Value"按钮添加',
264+
description: '获取到的成员ID列表,最多不超过1000个。多个值请使用"Add Value"按钮添加',
272265
},
273266
{
274267
displayName: 'External Userid列表',
@@ -285,8 +278,7 @@ export const accountIdDescription: INodeProperties[] = [
285278
},
286279
},
287280
default: [],
288-
description: '企业主体下的external_userid列表,建议200个,最多不超过1000个',
289-
hint: '企业主体下的external_userid列表,建议200个,最多不超过1000个,多个值请使用"Add Value"按钮添加',
281+
description: '企业主体下的external_userid列表,建议200个,最多不超过1000个。多个值请使用"Add Value"按钮添加',
290282
},
291283
{
292284
displayName: '客户群ID',
@@ -300,7 +292,6 @@ export const accountIdDescription: INodeProperties[] = [
300292
},
301293
},
302294
default: '',
303-
hint: '客户群ID',
304295
},
305296
{
306297
displayName: 'Unionid',
@@ -314,7 +305,7 @@ export const accountIdDescription: INodeProperties[] = [
314305
},
315306
},
316307
default: '',
317-
hint: '微信客户的unionid',
308+
description: '微信客户的unionid',
318309
},
319310
{
320311
displayName: 'Openid',
@@ -328,7 +319,7 @@ export const accountIdDescription: INodeProperties[] = [
328319
},
329320
},
330321
default: '',
331-
hint: '微信客户的openid',
322+
description: '微信客户的openid',
332323
},
333324
{
334325
displayName: '主体类型',
@@ -369,11 +360,10 @@ export const accountIdDescription: INodeProperties[] = [
369360
},
370361
},
371362
default: [],
372-
description: '该企业的外部联系人ID,最多可同时查询100个外部联系人',
373-
hint: '该企业的外部联系人ID,最多可同时查询100个外部联系人,多个值请使用"Add Value"按钮添加',
363+
description: '该企业的外部联系人ID,最多可同时查询100个外部联系人。多个值请使用"Add Value"按钮添加',
374364
},
375365
{
376-
displayName: '客户群ID',
366+
displayName: '客户群ID(可选)',
377367
name: 'chatId',
378368
type: 'string',
379369
displayOptions: {
@@ -383,7 +373,7 @@ export const accountIdDescription: INodeProperties[] = [
383373
},
384374
},
385375
default: '',
386-
hint: '群id,如果有传入该参数,则只检查群主是否在可见范围',
376+
description: '群ID,如果有传入该参数,则只检查群主是否在可见范围',
387377
},
388378
{
389379
displayName: 'External Tagid列表',
@@ -400,8 +390,7 @@ export const accountIdDescription: INodeProperties[] = [
400390
},
401391
},
402392
default: [],
403-
description: '企业主体下的客户标签ID或标签组ID列表,最多不超过1000个',
404-
hint: '企业主体下的客户标签ID或标签组ID列表,最多不超过1000个,多个值请使用"Add Value"按钮添加',
393+
description: '企业主体下的客户标签ID或标签组ID列表,最多不超过1000个。多个值请使用"Add Value"按钮添加',
405394
},
406395
{
407396
displayName: 'Open Kfid列表',
@@ -418,8 +407,7 @@ export const accountIdDescription: INodeProperties[] = [
418407
},
419408
},
420409
default: [],
421-
description: '微信客服ID列表,最多不超过1000个',
422-
hint: '微信客服ID列表,最多不超过1000个,多个值请使用"Add Value"按钮添加',
410+
description: '微信客服ID列表,最多不超过1000个。多个值请使用"Add Value"按钮添加',
423411
},
424412
{
425413
displayName: 'Provider Access Token',
@@ -436,8 +424,7 @@ export const accountIdDescription: INodeProperties[] = [
436424
},
437425
},
438426
default: '',
439-
description: '应用提供商的provider_access_token',
440-
hint: '应用提供商的provider_access_token,获取方法参见服务商的凭证',
427+
description: '应用提供商的provider_access_token,获取方法参见服务商的凭证',
441428
},
442429
{
443430
displayName: '企业ID',
@@ -451,7 +438,7 @@ export const accountIdDescription: INodeProperties[] = [
451438
},
452439
},
453440
default: '',
454-
hint: '企业corpid',
441+
description: '企业corpid',
455442
},
456443
{
457444
displayName: 'ID类型',
@@ -480,7 +467,6 @@ export const accountIdDescription: INodeProperties[] = [
480467
},
481468
],
482469
default: 1,
483-
description: 'ID类型:1-userid与corpid; 3-external_userid',
484-
hint: '多个值请使用"Add Value"按钮添加',
470+
description: 'ID类型:1-userid与corpid; 3-external_userid。多个值请使用"Add Value"按钮添加',
485471
},
486472
];

nodes/WeCom/resources/agent/batchSetWorkbenchData.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export const batchSetWorkbenchDataDescription: INodeProperties[] = [
2626
displayOptions: {
2727
show: showOnlyBatchSetWorkbenchData,
2828
},
29-
hint: '多个用户ID用逗号分隔,最多1000个',
30-
description: '需要设置的用户userid列表,用逗号分隔',
29+
description: '需要设置的用户userid列表,用逗号分隔。多个用户ID用逗号分隔,最多1000个',
3130
},
3231
{
3332
displayName: '模版类型',
@@ -77,7 +76,7 @@ export const batchSetWorkbenchDataDescription: INodeProperties[] = [
7776
type: ['keydata'],
7877
},
7978
},
80-
description: '关键数据型模版数据',
79+
description: '关键数据型模版数据。items数组不超过4个',
8180
},
8281
{
8382
displayName: '图片型配置(JSON)',
@@ -93,7 +92,7 @@ export const batchSetWorkbenchDataDescription: INodeProperties[] = [
9392
type: ['image'],
9493
},
9594
},
96-
description: '图片型模版数据',
95+
description: '图片型模版数据。图片最佳比例为3.35:1',
9796
},
9897
{
9998
displayName: '列表型配置(JSON)',
@@ -113,7 +112,7 @@ export const batchSetWorkbenchDataDescription: INodeProperties[] = [
113112
type: ['list'],
114113
},
115114
},
116-
description: '列表型模版数据',
115+
description: '列表型模版数据。items数组不超过3个',
117116
},
118117
{
119118
displayName: 'Webview型配置(JSON)',
@@ -129,6 +128,6 @@ export const batchSetWorkbenchDataDescription: INodeProperties[] = [
129128
type: ['webview'],
130129
},
131130
},
132-
description: 'Webview型模版数据',
131+
description: 'Webview型模版数据。height可选single_row或double_row',
133132
},
134133
];

nodes/WeCom/resources/agent/createMenu.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const createMenuDescription: INodeProperties[] = [
1515
displayOptions: {
1616
show: showOnlyCreateMenu,
1717
},
18-
hint: '必填。企业应用的唯一标识ID,整型,可在应用的设置页面查看',
1918
description: '企业应用的唯一标识,整型。可在应用的设置页面查看。<a href="https://developer.work.weixin.qq.com/document/path/90231" target="_blank">官方文档</a>',
2019
},
2120
{
@@ -51,7 +50,6 @@ export const createMenuDescription: INodeProperties[] = [
5150
displayOptions: {
5251
show: showOnlyCreateMenu,
5352
},
54-
hint: '必填。一级菜单数组,个数应为1~3个。每个菜单项包含:type(必填,菜单响应动作类型)、name(必填,主菜单不超过16字节,子菜单不超过40字节)、key(click等点击类型必填,不超过128字节)、url(view类型必填,不超过1024字节)、pagepath和appid(view_miniprogram类型必填)。二级菜单sub_button数组个数应为1~5个',
55-
description: '菜单按钮配置数组',
53+
description: '菜单按钮配置数组。一级菜单数组,个数应为1~3个。每个菜单项包含:type(必填,菜单响应动作类型)、name(必填,主菜单不超过16字节,子菜单不超过40字节)、key(click等点击类型必填,不超过128字节)、URL(view类型必填,不超过1024字节)、pagepath和appid(view_miniprogram类型必填)。二级菜单sub_button数组个数应为1~5个',
5654
},
5755
];

nodes/WeCom/resources/agent/deleteMenu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const deleteMenuDescription: INodeProperties[] = [
1515
displayOptions: {
1616
show: showOnlyDeleteMenu,
1717
},
18-
hint: '必填。企业应用的唯一标识ID',
1918
description: '企业应用的唯一标识。<a href="https://developer.work.weixin.qq.com/document/path/90233" target="_blank">官方文档</a>',
2019
},
2120
];

nodes/WeCom/resources/agent/getAgent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const getAgentDescription: INodeProperties[] = [
1515
displayOptions: {
1616
show: showOnlyGetAgent,
1717
},
18-
hint: '企业应用的唯一标识ID,必填参数',
1918
description: '企业应用的唯一标识。<a href="https://developer.work.weixin.qq.com/document/path/90227" target="_blank">官方文档</a>',
2019
},
2120
];

nodes/WeCom/resources/agent/getMenu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const getMenuDescription: INodeProperties[] = [
1515
displayOptions: {
1616
show: showOnlyGetMenu,
1717
},
18-
hint: '必填。企业应用的唯一标识ID',
1918
description: '企业应用的唯一标识。<a href="https://developer.work.weixin.qq.com/document/path/90232" target="_blank">官方文档</a>',
2019
},
2120
];

nodes/WeCom/resources/agent/listAgents.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const listAgentsDescription: INodeProperties[] = [
1515
show: showOnlyListAgents,
1616
},
1717
default: '此操作无需额外参数,将返回当前凭证可访问的所有应用列表。企业仅可获取当前凭证对应的应用;第三方仅可获取被授权的应用。',
18-
hint: '此操作无需额外参数,将返回当前凭证可访问的所有应用列表',
19-
description: '获取access_token对应的应用列表。<a href="https://developer.work.weixin.qq.com/document/path/90227" target="_blank">官方文档</a>',
18+
description: '获取access_token对应的应用列表。此操作无需额外参数,将返回当前凭证可访问的所有应用列表。<a href="https://developer.work.weixin.qq.com/document/path/90227" target="_blank">官方文档</a>',
2019
},
2120
];

nodes/WeCom/resources/agent/setAgent.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const setAgentDescription: INodeProperties[] = [
1515
displayOptions: {
1616
show: showOnlySetAgent,
1717
},
18-
hint: '必填。企业应用的唯一标识ID',
1918
description: '企业应用的唯一标识。<a href="https://developer.work.weixin.qq.com/document/path/90227" target="_blank">官方文档</a>',
2019
},
2120
{
@@ -26,7 +25,6 @@ export const setAgentDescription: INodeProperties[] = [
2625
displayOptions: {
2726
show: showOnlySetAgent,
2827
},
29-
hint: '可选。企业应用名称,长度不超过32个utf8字符',
3028
description: '企业应用名称,长度不超过32个utf8字符',
3129
},
3230
{
@@ -40,7 +38,6 @@ export const setAgentDescription: INodeProperties[] = [
4038
displayOptions: {
4139
show: showOnlySetAgent,
4240
},
43-
hint: '可选。企业应用详情描述,长度为4至120个utf8字符',
4441
description: '企业应用详情,长度为4至120个utf8字符',
4542
},
4643
{
@@ -51,7 +48,6 @@ export const setAgentDescription: INodeProperties[] = [
5148
displayOptions: {
5249
show: showOnlySetAgent,
5350
},
54-
hint: '可选。通过素材管理接口上传图片获得mediaid,上传后会自动裁剪成方形和圆形两个头像',
5551
description: '企业应用头像的mediaid,通过素材管理接口上传图片获得mediaid,上传后会自动裁剪成方形和圆形两个头像',
5652
},
5753
{
@@ -62,7 +58,6 @@ export const setAgentDescription: INodeProperties[] = [
6258
displayOptions: {
6359
show: showOnlySetAgent,
6460
},
65-
hint: '可选。应用主页URL,必须以http或者https开头(为了提高安全性,建议使用https)',
6661
description: '应用主页URL。URL必须以http或者https开头(为了提高安全性,建议使用https)',
6762
},
6863
{
@@ -73,7 +68,6 @@ export const setAgentDescription: INodeProperties[] = [
7368
displayOptions: {
7469
show: showOnlySetAgent,
7570
},
76-
hint: '可选。企业应用可信域名,域名需通过所有权校验,否则jssdk功能将受限(错误码85005)',
7771
description: '企业应用可信域名。注意:域名需通过所有权校验,否则jssdk功能将受限,此时返回错误码85005',
7872
},
7973
{

nodes/WeCom/resources/agent/setWorkbenchTemplate.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ export const setWorkbenchTemplateDescription: INodeProperties[] = [
7979
type: ['keydata'],
8080
},
8181
},
82-
hint: 'items数组不超过4个',
83-
description: '关键数据型模版数据。items.key为数据名称,items.data为数据值,items.jump_url为跳转URL,items.pagepath为小程序页面路径',
82+
description: '关键数据型模版数据。items数组不超过4个。items.key为数据名称,items.data为数据值,items.jump_url为跳转URL,items.pagepath为小程序页面路径',
8483
},
8584
{
8685
displayName: '图片型配置(JSON)',
@@ -96,8 +95,7 @@ export const setWorkbenchTemplateDescription: INodeProperties[] = [
9695
type: ['image'],
9796
},
9897
},
99-
hint: '图片最佳比例为3.35:1',
100-
description: '图片型模版数据。URL为图片地址,jump_url为跳转URL,pagepath为小程序页面路径',
98+
description: '图片型模版数据。图片最佳比例为3.35:1。URL为图片地址,jump_url为跳转URL,pagepath为小程序页面路径',
10199
},
102100
{
103101
displayName: '列表型配置(JSON)',
@@ -121,8 +119,7 @@ export const setWorkbenchTemplateDescription: INodeProperties[] = [
121119
type: ['list'],
122120
},
123121
},
124-
hint: 'items数组不超过3个',
125-
description: '列表型模版数据。items.title为显示文字,items.jump_url为跳转URL,items.pagepath为小程序页面路径',
122+
description: '列表型模版数据。items数组不超过3个。items.title为显示文字,items.jump_url为跳转URL,items.pagepath为小程序页面路径',
126123
},
127124
{
128125
displayName: 'Webview型配置(JSON)',
@@ -141,8 +138,7 @@ export const setWorkbenchTemplateDescription: INodeProperties[] = [
141138
type: ['webview'],
142139
},
143140
},
144-
hint: 'height可选single_row或double_row',
145-
description: 'Webview型模版数据。URL为渲染展示的URL,jump_url为跳转URL,height为高度,hide_title是否隐藏标题,enable_webview_click是否开启链接跳转',
141+
description: 'Webview型模版数据。height可选single_row或double_row。URL为渲染展示的URL,jump_url为跳转URL,height为高度,hide_title是否隐藏标题,enable_webview_click是否开启链接跳转',
146142
},
147143
{
148144
displayName: '覆盖用户数据',

nodes/WeCom/resources/aibotPassiveReply/index.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ export const aibotPassiveReplyDescription: INodeProperties[] = [
7474
],
7575
default: 'text',
7676
required: true,
77-
description: '选择欢迎语的回复类型',
78-
hint: '进入会话事件支持回复文本消息或模板卡片消息',
77+
description: '选择欢迎语的回复类型。进入会话事件支持回复文本消息或模板卡片消息',
7978
},
8079
{
8180
displayName: '回复类型',
@@ -106,8 +105,7 @@ export const aibotPassiveReplyDescription: INodeProperties[] = [
106105
],
107106
default: 'stream',
108107
required: true,
109-
description: '选择回复用户消息的类型',
110-
hint: '支持回复流式消息、模板卡片消息,或同时回复流式消息和模板卡片',
108+
description: '选择回复用户消息的类型。支持回复流式消息、模板卡片消息,或同时回复流式消息和模板卡片',
111109
},
112110
{
113111
displayName: '回复类型',
@@ -133,8 +131,7 @@ export const aibotPassiveReplyDescription: INodeProperties[] = [
133131
],
134132
default: 'markdown',
135133
required: true,
136-
description: '选择主动回复的消息类型',
137-
hint: '支持的消息类型:\n- Markdown消息:支持常见的markdown格式\n- 模板卡片消息:仅单聊支持,群聊中会引用触发回调的消息',
134+
description: '选择主动回复的消息类型。支持的消息类型:\n- Markdown消息:支持常见的markdown格式\n- 模板卡片消息:仅单聊支持,群聊中会引用触发回调的消息',
138135
},
139136
...replyWelcomeTextDescription,
140137
...replyWelcomeTemplateCardDescription,

0 commit comments

Comments
 (0)