فهرست منبع

fix(meta): Fix meta typos, types, controls etc.

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
Jiyong Huang 2 سال پیش
والد
کامیت
357bf8bd60

+ 16 - 54
etc/functions/internal.json

@@ -246,7 +246,7 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "population standard deviation",
+				"en_US": "Population Standard Deviation",
 				"zh_CN": "总体标准偏差"
 			}
 		}
@@ -285,7 +285,7 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "sample standard deviation",
+				"en_US": "Sample Standard Deviation",
 				"zh_CN": "样本标准偏差"
 			}
 		}
@@ -324,8 +324,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "population variance",
-				"zh_CN": "总体标准偏差的方差"
+				"en_US": "Population Variance",
+				"zh_CN": "总体方差"
 			}
 		}
 	},{
@@ -363,8 +363,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "sample variance",
-				"zh_CN": "样本标准偏差的方差"
+				"en_US": "Sample Variance",
+				"zh_CN": "样本方差"
 			}
 		}
 	}, {
@@ -391,7 +391,7 @@
 				}
 			},
 			{
-				"name": "field",
+				"name": "percentile",
 				"optional": false,
 				"control": "field",
 				"type": "number",
@@ -400,7 +400,7 @@
 					"zh_CN": "要查找的值的百分位数。百分位数必须是介于 0.0 和 1.0 之间的常数。"
 				},
 				"label": {
-					"en_US": "percentile",
+					"en_US": "Percentile",
 					"zh_CN": "百分位数"
 				}
 			}
@@ -408,7 +408,7 @@
 		"return": {
 			"type": "number",
 			"hint": {
-				"en_US": "percentile value based on a continuous distribution",
+				"en_US": "Percentile value based on a continuous distribution",
 				"zh_CN": "连续分布的百分位值"
 			}
 		},
@@ -416,7 +416,7 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "percentile value based on a continuous distribution",
+				"en_US": "Percentile Values of Continuous Distribution",
 				"zh_CN": "连续分布的百分位值"
 			}
 		}
@@ -444,7 +444,7 @@
 				}
 			},
 			{
-				"name": "field",
+				"name": "percentile",
 				"optional": false,
 				"control": "field",
 				"type": "number",
@@ -453,7 +453,7 @@
 					"zh_CN": "要查找的值的百分位数。百分位数必须是介于 0.0 和 1.0 之间的常数。"
 				},
 				"label": {
-					"en_US": "percentile",
+					"en_US": "Percentile",
 					"zh_CN": "百分位数"
 				}
 			}
@@ -461,7 +461,7 @@
 		"return": {
 			"type": "number",
 			"hint": {
-				"en_US": "percentile value based on a discrete distribution",
+				"en_US": "Percentile value based on a discrete distribution",
 				"zh_CN": "离散分布的百分位值"
 			}
 		},
@@ -469,7 +469,7 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "percentile value based on a discrete distribution",
+				"en_US": "Percentile Value of Discrete Distribution",
 				"zh_CN": "离散分布的百分位值"
 			}
 		}
@@ -561,7 +561,7 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "deduplicate",
+				"en_US": "Deduplicate",
 				"zh_CN": "去重"
 			}
 		}
@@ -2869,7 +2869,7 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "SHA 512 hashed value of the argument",
+				"en_US": "SHA 512",
 				"zh_CN": "参数的 SHA512 哈希值"
 			}
 		}
@@ -3114,44 +3114,6 @@
 			}
 		}
 	}, {
-		"name": "mqtt",
-		"example": "mqtt(topic)",
-		"hint": {
-			"en_US": "Returns the MQTT meta-data of specified key. The current supported keys - topic: return the topic of message. If there are multiple stream source, then specify the source name in parameter. Such as mqtt(src1.topic) - messageid: return the message id of message. If there are multiple stream source, then specify the source name in parameter. Such as mqtt(src2.messageid)",
-			"zh_CN": "返回指定键的 MQTT 元数据。 当前支持的键包括 -topic:返回消息的主题。 如果有多个流源,则在参数中指定源名称。 如 mqtt(src1.topic) - messageid:返回消息的消息ID。 如果有多个流源,则在参数中指定源名称。 如 mqtt(src2.messageid)"
-		},
-		"args": [
-			{
-				"name": "key",
-				"optional": false,
-				"control": "text",
-				"type": "any",
-				"hint": {
-					"en_US": "Returns the MQTT meta-data of specified key.",
-					"zh_CN": "返回指定键的 MQTT 元数据"
-				},
-				"label": {
-					"en_US": "Returns the MQTT meta-data of specified key.",
-					"zh_CN": "返回指定键的 MQTT 元数据"
-				}
-			}
-		],
-		"return": {
-			"type": "any",
-			"hint": {
-				"en_US": "MQTT Meta",
-				"zh_CN": "MQTT 元数据"
-			}
-		},
-		"node": {
-			"category": "function",
-			"icon": "iconPath",
-			"label": {
-				"en_US": "MQTT Meta",
-				"zh_CN": "MQTT 元数据"
-			}
-		}
-	}, {
 		"name": "meta",
 		"example": "meta(topic)",
 		"hint": {

+ 2 - 2
etc/ops/function.json

@@ -13,8 +13,8 @@
       "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/sqls/query_language_elements.md"
     },
     "description": {
-      "en_US": "An operation to invoke a function",
-      "zh_CN": "用于调用函数的操作"
+      "en_US": "An operation to invoke a function or multiple functions",
+      "zh_CN": "用于调用或嵌套调用函数的操作"
     }
   },
   "properties": [{

+ 1 - 1
etc/ops/script.json

@@ -21,7 +21,7 @@
     "name": "script",
     "default": "",
     "optional": false,
-    "control": "text",
+    "control": "textarea",
     "type": "string",
     "hint": {
       "en_US": "The script text, now supports JavaScript only. Must have a function named exec, whose parameter is the message and the return value must be the processed message.",

+ 2 - 2
etc/sinks/edgex.json

@@ -423,8 +423,8 @@
     "category": "sink",
     "icon": "iconPath",
     "label": {
-      "en": "EDGEX",
-      "zh": "EDGEX"
+      "en": "EdgeX Foundry",
+      "zh": "EdgeX Foundry"
     }
   }
 }

+ 2 - 2
etc/sources/edgex.json

@@ -355,8 +355,8 @@
 		"category": "source",
 		"icon": "iconPath",
 		"label": {
-			"en_US": "Edgex",
-			"zh_CN": "Edgex"
+			"en_US": "EdgeX Foundry",
+			"zh_CN": "EdgeX Foundry"
 		}
 	}
 }

+ 9 - 11
extensions/functions/accumulateWordCount/accumulateWordCount.json

@@ -27,20 +27,18 @@
 		},
 		"args": [
 			{
-				"name": "inputData",
-				"hidden": true,
+				"name": "field",
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
+					"en_US": "The field to calculate the word count.",
+					"zh_CN": "用于计算字数的字段名"
 				},
 				"label": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
-				},
-				"values": []
+					"en_US": "Field",
+					"zh_CN": "字段"
+				}
 			}
 		],
 		"return": {
@@ -54,8 +52,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "AccumulateWordCount",
-				"zh_CN": "AccumulateWordCount"
+				"en_US": "Accumulate Word Count",
+				"zh_CN": "累计字数"
 			}
 		}
 	}]

+ 9 - 10
extensions/functions/countPlusOne/countPlusOne.json

@@ -27,18 +27,17 @@
 		},
 		"args": [
 			{
-				"name": "inputData",
-				"hidden": true,
+				"name": "field",
 				"optional": false,
-				"control": "text",
-				"type": "int",
+				"control": "field",
+				"type": "any",
 				"hint": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
+					"en_US": "The field to calculate the count.",
+					"zh_CN": "用于计数的字段名"
 				},
 				"label": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
+					"en_US": "Field",
+					"zh_CN": "字段"
 				}
 			}
 		],
@@ -53,8 +52,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "countPlusOne",
-				"zh_CN": "countPlusOne"
+				"en_US": "Count Plus One",
+				"zh_CN": "计数后加一"
 			}
 		}
 	}]

+ 67 - 73
extensions/functions/geohash/geohash.json

@@ -27,32 +27,30 @@
 		},
 		"args": [
 			{
-				"name": "la",
-				"hidden": true,
+				"name": "latitude",
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "Input la",
+					"en_US": "Input latitude",
 					"zh_CN": "输入经度"
 				},
 				"label": {
-					"en_US": "Input la",
-					"zh_CN": "输入经度"
+					"en_US": "Latitude",
+					"zh_CN": "经度"
 				}
 			},
 			{
-				"name": "lo",
-				"hidden": true,
+				"name": "longitude",
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "Input lo",
+					"en_US": "Input longitude",
 					"zh_CN": "输入纬度"
 				},
 				"label": {
-					"en_US": "Input lo",
+					"en_US": "Longitude",
 					"zh_CN": "输入纬度"
 				}
 			}
@@ -68,8 +66,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashEncode",
-				"zh_CN": "geohashEncode"
+				"en_US": "Geohash Encode",
+				"zh_CN": "Geohash 编码"
 			}
 		}
 	}, {
@@ -81,32 +79,30 @@
 		},
 		"args": [
 			{
-				"name": "la",
-				"hidden": true,
+				"name": "latitude",
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "Input la",
+					"en_US": "Input latitude",
 					"zh_CN": "输入经度"
 				},
 				"label": {
-					"en_US": "Input la",
-					"zh_CN": "输入经度"
+					"en_US": "Latitude",
+					"zh_CN": "经度"
 				}
 			},
 			{
-				"name": "lo",
-				"hidden": true,
+				"name": "longitude",
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "Input lo",
+					"en_US": "Input longitude",
 					"zh_CN": "输入纬度"
 				},
 				"label": {
-					"en_US": "Input lo",
+					"en_US": "Longitude",
 					"zh_CN": "输入纬度"
 				}
 			}
@@ -122,8 +118,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashEncodeInt",
-				"zh_CN": "geohashEncodeInt"
+				"en_US": "Geohash Encode to Integer",
+				"zh_CN": "Geohash 整数编码"
 			}
 		}
 	}, {
@@ -136,16 +132,16 @@
 		"args": [
 			{
 				"name": "data",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
 					"en_US": "Input data",
 					"zh_CN": "输入数据"
 				},
 				"label": {
-					"en_US": "Input data",
+					"en_US": "Field",
 					"zh_CN": "输入数据"
 				}
 			}
@@ -161,8 +157,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashDecode",
-				"zh_CN": "geohashDecode"
+				"en_US": "Geohash Decode",
+				"zh_CN": "Geohash 解码"
 			}
 		}
 	}, {
@@ -175,16 +171,16 @@
 		"args": [
 			{
 				"name": "data",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
-				"control": "text",
-				"type": "string",
+				"control": "field",
+				"type": "number",
 				"hint": {
 					"en_US": "Input data",
 					"zh_CN": "输入数据"
 				},
 				"label": {
-					"en_US": "Input data",
+					"en_US": "Data",
 					"zh_CN": "输入数据"
 				}
 			}
@@ -200,8 +196,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashDecodeInt",
-				"zh_CN": "geohashDecodeInt"
+				"en_US": "Geohash Decode Integer",
+				"zh_CN": "Geohash 整数解码"
 			}
 		}
 	}, {
@@ -214,7 +210,7 @@
 		"args": [
 			{
 				"name": "data",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
 				"control": "text",
 				"type": "string",
@@ -223,7 +219,7 @@
 					"zh_CN": "输入数据"
 				},
 				"label": {
-					"en_US": "Input data",
+					"en_US": "Data",
 					"zh_CN": "输入数据"
 				}
 			}
@@ -239,8 +235,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashBoundingBox",
-				"zh_CN": "geohashBoundingBox"
+				"en_US": "Geohash Bounding Box",
+				"zh_CN": "Geohash 边界框"
 			}
 		}
 	}, {
@@ -253,16 +249,16 @@
 		"args": [
 			{
 				"name": "data",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
 					"en_US": "Input data",
 					"zh_CN": "输入数据"
 				},
 				"label": {
-					"en_US": "Input data",
+					"en_US": "Data",
 					"zh_CN": "输入数据"
 				}
 			}
@@ -278,8 +274,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashBoundingBoxInt",
-				"zh_CN": "geohashBoundingBoxInt"
+				"en_US": "Geohash Integer Bounding Box",
+				"zh_CN": "Geohash 整数边界框"
 			}
 		}
 	}, {
@@ -292,32 +288,31 @@
 		"args": [
 			{
 				"name": "hash",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
 					"en_US": "Input data",
 					"zh_CN": "输入数据"
 				},
 				"label": {
-					"en_US": "Input data",
+					"en_US": "Field",
 					"zh_CN": "输入数据"
 				}
 			},
 			{
 				"name": "direction",
-				"hidden": true,
 				"optional": false,
 				"control": "text",
 				"type": "string",
 				"hint": {
 					"en_US": "Input direction",
-					"zh_CN": "输入数据"
+					"zh_CN": "输入方向"
 				},
 				"label": {
-					"en_US": "Input direction",
-					"zh_CN": "输入数据"
+					"en_US": "Direction",
+					"zh_CN": "方向"
 				}
 			}
 		],
@@ -332,8 +327,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashNeighbor",
-				"zh_CN": "geohashNeighbor"
+				"en_US": "Geohash Neighbor",
+				"zh_CN": "Geohash 相邻位置"
 			}
 		}
 	}, {
@@ -346,32 +341,31 @@
 		"args": [
 			{
 				"name": "hash",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
 					"en_US": "Input data",
 					"zh_CN": "输入数据"
 				},
 				"label": {
-					"en_US": "Input data",
+					"en_US": "Data",
 					"zh_CN": "输入数据"
 				}
 			},
 			{
 				"name": "direction",
-				"hidden": true,
 				"optional": false,
 				"control": "text",
 				"type": "string",
 				"hint": {
 					"en_US": "Input direction",
-					"zh_CN": "输入数据"
+					"zh_CN": "输入方向"
 				},
 				"label": {
-					"en_US": "Input direction",
-					"zh_CN": "输入数据"
+					"en_US": "Direction",
+					"zh_CN": "方向"
 				}
 			}
 		],
@@ -386,8 +380,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashNeighborInt",
-				"zh_CN": "geohashNeighborInt"
+				"en_US": "Geohash Neighbor Integer",
+				"zh_CN": "Geohash 相邻位置编码"
 			}
 		}
 	}, {
@@ -400,16 +394,16 @@
 		"args": [
 			{
 				"name": "hash",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
 					"en_US": "Input data",
 					"zh_CN": "输入数据"
 				},
 				"label": {
-					"en_US": "Input data",
+					"en_US": "Field",
 					"zh_CN": "输入数据"
 				}
 			}
@@ -425,8 +419,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashNeighbors",
-				"zh_CN": "geohashNeighbors"
+				"en_US": "Geohash All Neighbors",
+				"zh_CN": "Geohash 所有相邻位置"
 			}
 		}
 	}, {
@@ -438,7 +432,7 @@
 		},
 		"args": [{
 				"name": "hash",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
 				"control": "text",
 			"type": "string",
@@ -447,7 +441,7 @@
 				"zh_CN": "输入数据"
 			},
 			"label": {
-				"en_US": "Input data",
+				"en_US": "Field",
 				"zh_CN": "输入数据"
 			}
 		}
@@ -463,8 +457,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "geohashNeighbors",
-				"zh_CN": "geohashNeighbors"
+				"en_US": "Geohash All Neighbors Integer",
+				"zh_CN": "Geohash 所有相邻位置编码"
 			}
 		}
 	}]

+ 24 - 29
extensions/functions/image/image.json

@@ -28,21 +28,20 @@
 		"args": [
 			{
 				"name": "image",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
+					"en_US": "Input image",
+					"zh_CN": "输入图像"
 				},
 				"label": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
+					"en_US": "Image",
+					"zh_CN": "图像"
 				}
 			},{
 				"name": "width",
-				"hidden": true,
 				"optional": false,
 				"control": "text",
 				"type": "int",
@@ -51,12 +50,11 @@
 					"zh_CN": "输入宽度"
 				},
 				"label": {
-					"en_US": "Input width",
-					"zh_CN": "输入宽度"
+					"en_US": "Width",
+					"zh_CN": "宽度"
 				}
 			},{
 				"name": "height",
-				"hidden": true,
 				"optional": false,
 				"control": "text",
 				"type": "int",
@@ -65,12 +63,11 @@
 					"zh_CN": "输入高度"
 				},
 				"label": {
-					"en_US": "Input height",
-					"zh_CN": "输入高度"
+					"en_US": "Height",
+					"zh_CN": "高度"
 				}
 			},{
 				"name": "isRaw",
-				"hidden": true,
 				"optional": true,
 				"control": "radio",
 				"type": "bool",
@@ -95,8 +92,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "resize",
-				"zh_CN": "resize"
+				"en_US": "Image Resize",
+				"zh_CN": "图像调整大小"
 			}
 		}
 	}, {
@@ -109,21 +106,20 @@
 		"args": [
 			{
 				"name": "image",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
+					"en_US": "Input image",
+					"zh_CN": "输入图像"
 				},
 				"label": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
+					"en_US": "Image",
+					"zh_CN": "图像"
 				}
 			},{
 				"name": "maxWidth",
-				"hidden": true,
 				"optional": false,
 				"control": "text",
 				"type": "int",
@@ -132,12 +128,11 @@
 					"zh_CN": "输入最大宽度"
 				},
 				"label": {
-					"en_US": "Input maxWidth",
-					"zh_CN": "输入最大宽度"
+					"en_US": "Max Width",
+					"zh_CN": "最大宽度"
 				}
 			},{
 				"name": "maxHeight",
-				"hidden": true,
 				"optional": false,
 				"control": "text",
 				"type": "int",
@@ -146,8 +141,8 @@
 					"zh_CN": "输入最大高度"
 				},
 				"label": {
-					"en_US": "Input maxHeight",
-					"zh_CN": "输入最大高度"
+					"en_US": "MaxHeight",
+					"zh_CN": "最大高度"
 				}
 			}
 		],
@@ -162,8 +157,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "thumbnail",
-				"zh_CN": "thumbnail"
+				"en_US": "Thumbnail",
+				"zh_CN": "缩略图"
 			}
 		}
 	}]

+ 11 - 13
extensions/functions/labelImage/labelImage.json

@@ -12,12 +12,10 @@
           "zh_CN": "https://ekuiper.org/docs/zh/latest/sqls/custom_functions.html"
         },
 		"description": {
-			"en_US": "",
-			"zh_CN": ""
+			"en_US": "Example plugin to demonstrate inferring Tensorflow lite model to label an image",
+			"zh_CN": "示例插件,演示如何使用Tensorflow lite模型对图像进行标记推断。"
 		}
 	},
-	"libs": [],
-	"name": "labelImage",
 	"functions": [{
 		"name": "labelImage",
 		"example": "labelImage(col1)",
@@ -27,18 +25,18 @@
 		},
 		"args": [
 			{
-				"name": "inputData",
-				"hidden": true,
+				"name": "image",
+				"hidden": false,
 				"optional": false,
-				"control": "text",
+				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
+					"en_US": "Input image",
+					"zh_CN": "输入图像"
 				},
 				"label": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据"
+					"en_US": "Image",
+					"zh_CN": "图像"
 				}
 			}
 		],
@@ -53,8 +51,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "labelImage",
-				"zh_CN": "labelImage"
+				"en_US": "Label Image",
+				"zh_CN": "图像标注"
 			}
 		}
 	}]

+ 17 - 33
extensions/functions/tfLite/tfLite.json

@@ -12,23 +12,21 @@
 			"zh_CN": "https://ekuiper.org/docs/zh/latest/sqls/custom_functions.html"
 		},
 		"description": {
-			"en_US": "",
-			"zh_CN": ""
+			"en_US": "General Tensorflow lite plugin which can infer any tflite model dynamically",
+			"zh_CN": "通用的 TensorFlow Lite 插件,可以动态推断任何 tflite 模型。"
 		}
 	},
-	"libs": [],
-	"name": "tfLite",
 	"functions": [{
 		"name": "tfLite",
 		"example": "tfLite(model,para1, para2,...)",
 		"hint": {
-			"en_US": "Creates a scaled image with new dimensions (width, height) .If either width or height is set to 0, it will be set to an aspect ratio preserving value.",
-			"zh_CN": "创建具有新尺寸(宽度,高度)的缩放图像。如果width或height设置为0,则将其设置为长宽比保留值。"
+			"en_US": "Select AI model in runtime and infer the stream data",
+			"zh_CN": "动态选择模型进行推断"
 		},
 		"args": [
 			{
 				"name": "model",
-				"hidden": true,
+				"hidden": false,
 				"optional": false,
 				"control": "text",
 				"type": "string",
@@ -37,36 +35,22 @@
 					"zh_CN": "输入模型"
 				},
 				"label": {
-					"en_US": "Input data",
-					"zh_CN": "输入模型"
-				}
-			},{
-				"name": "para1",
-				"hidden": true,
-				"optional": false,
-				"control": "text",
-				"type": "int",
-				"hint": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据1"
-				},
-				"label": {
-					"en_US": "Input data",
-					"zh_CN": "输入数据1"
+					"en_US": "Model Name",
+					"zh_CN": "模型名称"
 				}
 			},{
-				"name": "para2",
-				"hidden": true,
+				"name": "fields",
+				"default": "",
 				"optional": false,
-				"control": "text",
-				"type": "int",
+				"control": "list",
+				"type": "list_string",
 				"hint": {
-					"en_US": "Input height",
-					"zh_CN": "输入数据2"
+					"en_US": "select parameter fields",
+					"zh_CN": "选取参数字段"
 				},
 				"label": {
-					"en_US": "Input height",
-					"zh_CN": "输入数据2"
+					"en_US": "Parameter Fields",
+					"zh_CN": "参数字段"
 				}
 			}
 		],
@@ -81,8 +65,8 @@
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "tflite",
-				"zh_CN": "tflite"
+				"en_US": "Tensorflow Lite",
+				"zh_CN": "Tensorflow Lite"
 			}
 		}
 	}]

+ 2 - 2
extensions/sinks/file/file.json

@@ -8,8 +8,8 @@
 			"website": "https://www.emqx.io"
 		},
 		"helpUrl": {
-			"en_US": "https://ekuiper.org/docs/en/latest/guide/sinks/plugin/file.html",
-			"zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/plugin/file.html"
+			"en_US": "https://ekuiper.org/docs/en/latest/guide/sinks/builtin/file.html",
+			"zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/builtin/file.html"
 		},
 		"description": {
 			"en_US": "This a sink plugin for file, it can be used for saving the analysis data into file system.",

+ 13 - 5
extensions/sinks/image/image.json

@@ -8,12 +8,12 @@
 			"website": "https://www.emqx.io"
 		},
 		"helpUrl": {
-          "en_US": "https://ekuiper.org/docs/en/latest/guide/sinks/plugin/file.html",
-          "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/plugin/file.html"
+          "en_US": "https://ekuiper.org/docs/en/latest/guide/sinks/plugin/image.html",
+          "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/plugin/image.html"
         },
 		"description": {
-			"en_US": "This a sink plugin for file, it can be used for saving the analysis data into file system.",
-			"zh_CN": "本插件为文件持久化插件,可以用于将分析数据存入指定的文件中。"
+			"en_US": "This sink is used to save the picture to the specified folder.",
+			"zh_CN": "本插件用于将图片保存到指定文件夹。"
 		}
 	},
 	"libs": [
@@ -78,5 +78,13 @@
 			"en_US": "maxCount",
 			"zh_CN": "最大写入数量"
 		}
-	}]
+	}],
+	"node": {
+		"category": "sink",
+		"icon": "iconPath",
+		"label": {
+			"en": "Image",
+			"zh": "图像"
+		}
+	}
 }

+ 5 - 5
extensions/sinks/influx/influx.json

@@ -8,8 +8,8 @@
 			"website": ""
 		},
 		"helpUrl": {
-          "en_US": "https://ekuiper.org/docs/en/latest/guide/sinks/plugin/influxdb.html",
-          "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/plugin/influxdb.html"
+          "en_US": "https://ekuiper.org/docs/en/latest/guide/sinks/plugin/influx.html",
+          "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/plugin/influx.html"
         },
 		"description": {
 			"en_US": "This a sink plugin for InfluxDB, it can be used for saving the analysis data into InfluxDB.",
@@ -133,11 +133,11 @@
 		}
 	}],
 	"node": {
-		"category": "Sink",
+		"category": "sink",
 		"icon": "iconPath",
 		"label": {
-			"en": "Influx",
-			"zh": "Influx"
+			"en": "InfluxDB 1",
+			"zh": "InfluxDB 1"
 		}
 	}
 }

+ 9 - 1
extensions/sinks/influx2/influx2.json

@@ -131,5 +131,13 @@
 			"en_US": "Column",
 			"zh_CN": "列名"
 		}
-	}]
+	}],
+	"node": {
+		"category": "sink",
+		"icon": "iconPath",
+		"label": {
+			"en": "InfluxDB 2",
+			"zh": "InfluxDB 2"
+		}
+	}
 }

+ 1 - 1
extensions/sinks/sql/sql.json

@@ -92,7 +92,7 @@
 	}
  ],
 	"node": {
-		"category": "Sink",
+		"category": "sink",
 		"icon": "iconPath",
 		"label": {
 			"en": "SQL",

+ 3 - 3
extensions/sinks/tdengine/tdengine.json

@@ -201,11 +201,11 @@
     }
   ],
   "node": {
-    "category": "Sink",
+    "category": "sink",
     "icon": "iconPath",
     "label": {
-      "en": "Tdengine",
-      "zh": "Tdengine"
+      "en": "TDengine 2",
+      "zh": "TDengine 2"
     }
   }
 }

+ 3 - 3
extensions/sinks/zmq/zmq.json

@@ -49,11 +49,11 @@
 		}
 	}],
 	"node": {
-		"category": "Sink",
+		"category": "sink",
 		"icon": "iconPath",
 		"label": {
-			"en": "ZMQ",
-			"zh": "ZMQ"
+			"en": "ZeroMQ",
+			"zh": "ZeroMQ"
 		}
 	}
 }

+ 3 - 3
extensions/sources/zmq/zmq.json

@@ -74,11 +74,11 @@
     }
   ],
   "node": {
-    "category": ["Protocol","Protocol1"],
+    "category": "source",
     "icon": "iconPath",
     "label": {
-      "en_US": "ZMQ",
-      "zh_CN": "ZMQ"
+      "en_US": "ZeroMQ",
+      "zh_CN": "ZeroMQ"
     }
   }
 }

+ 38 - 39
sdk/go/example/mirror/functions/echo.json

@@ -8,53 +8,52 @@
 			"website": "https://www.emqx.io"
 		},
 		"helpUrl": {
-			"en_US": "https://ekuiper.org/docs/en/latest/sqls/custom_functions.html",
-			"zh_CN": "https://ekuiper.org/docs/zh/latest/sqls/custom_functions.html"
-		},
+          "en_US": "https://ekuiper.org/docs/en/latest/sqls/custom_functions.html",
+          "zh_CN": "https://ekuiper.org/docs/zh/latest/sqls/custom_functions.html"
+        },
 		"description": {
 			"en_US": "",
 			"zh_CN": ""
 		}
 	},
 	"name": "echo",
-	"functions": [
-		{
-			"name": "echo",
-			"example": "echo(col1)",
-			"hint": {
-				"en_US": "The parameter value is output as it is.",
-				"zh_CN": "原样输出参数值。"
-			},
-			"args": [
-				{
-					"name": "field",
-					"optional": false,
-					"control": "field",
-					"type": "string",
-					"hint": {
-						"en_US": "The field to echo.",
-						"zh_CN": "字段名"
-					},
-					"label": {
-						"en_US": "Field",
-						"zh_CN": "字段"
-					}
-				}
-			],
-			"return": {
+	"functions": [{
+		"name": "echo",
+		"example": "echo(col1)",
+		"hint": {
+			"en_US": "The parameter value is output as it is.",
+			"zh_CN": "原样输出参数值。"
+		},
+		"args": [
+			{
+				"name": "field",
+				"optional": false,
+				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "Echoed string",
-					"zh_CN": "回声值"
-				}
-			},
-			"node": {
-				"category": "function",
-				"icon": "iconPath",
+					"en_US": "The field to echo.",
+					"zh_CN": "字段名"
+				},
 				"label": {
-					"en_US": "Echo",
-					"zh_CN": "回声"
+					"en_US": "Field",
+					"zh_CN": "字段"
 				}
 			}
-		}]
-}
+		],
+		"return": {
+			"type": "string",
+			"hint": {
+				"en_US": "Echoed string",
+				"zh_CN": "回声值"
+			}
+		},
+		"node": {
+			"category": "function",
+			"icon": "iconPath",
+			"label": {
+				"en_US": "Echo",
+				"zh_CN": "回声"
+			}
+		}
+	}]
+}

+ 19 - 24
sdk/go/example/mirror/sinks/file.json

@@ -7,10 +7,6 @@
 			"company": "EMQ Technologies Co., Ltd",
 			"website": "https://www.emqx.io"
 		},
-		"helpUrl": {
-			"en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/plugins/sinks/file.md",
-			"zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/plugins/sinks/file.md"
-		},
 		"description": {
 			"en_US": "This a sink plugin for file, it can be used for saving the analysis data into file system.",
 			"zh_CN": "本插件为文件持久化插件,可以用于将分析数据存入指定的文件中。"
@@ -36,24 +32,23 @@
 		"name": "interval",
 		"default": 1000,
 		"optional": true,
-      "control": "text",
-      "type": "int",
-      "hint": {
-        "en_US": "The time interval (ms) for writing the analysis result.",
-        "zh_CN": "写入分析结果的时间间隔(毫秒)。"
-      },
-      "label": {
-        "en_US": "Intervals",
-        "zh_CN": "间隔时间"
-      }
-    }
-    ],
-  "node": {
-    "category": "Sink",
-    "icon": "iconPath",
-    "label": {
-      "en": "File",
-      "zh": "文件"
-    }
-  }
+		"control": "text",
+		"type": "int",
+		"hint": {
+			"en_US": "The time interval (ms) for writing the analysis result.",
+			"zh_CN": "写入分析结果的时间间隔(毫秒)。"
+		},
+		"label": {
+			"en_US": "Intervals",
+			"zh_CN": "间隔时间"
+		}
+	}],
+	"node": {
+		"category": "sink",
+		"icon": "iconPath",
+		"label": {
+			"en": "File",
+			"zh": "文件"
+		}
+	}
 }

+ 2 - 2
sdk/go/example/mirror/sources/random.json

@@ -8,8 +8,8 @@
       "website": "https://www.emqx.io"
     },
     "helpUrl": {
-      "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/plugins/sources/random.md",
-      "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/plugins/sources/random.md"
+      "en_US": "https://ekuiper.org/docs/en/latest/guide/sources/plugin/random.html",
+      "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sources/plugin/random.html"
     },
     "description": {
       "en_US": "The source will generate random inputs with a specified pattern.",

+ 5 - 5
sdk/python/example/pysam/functions/revert.json

@@ -26,8 +26,8 @@
 				"control": "field",
 				"type": "string",
 				"hint": {
-					"en_US": "The field to revert.",
-					"zh_CN": "用于反转的字段名"
+					"en_US": "The field to revert",
+					"zh_CN": "字段名"
 				},
 				"label": {
 					"en_US": "Field",
@@ -39,15 +39,15 @@
 			"type": "string",
 			"hint": {
 				"en_US": "Reverted string",
-				"zh_CN": "反转"
+				"zh_CN": "反转后的字符串"
 			}
 		},
 		"node": {
 			"category": "function",
 			"icon": "iconPath",
 			"label": {
-				"en_US": "Revert",
-				"zh_CN": "反转"
+				"en_US": "String Revert",
+				"zh_CN": "字符串反转"
 			}
 		}
 	}]

+ 20 - 20
sdk/python/example/pysam/sinks/print.json

@@ -1,24 +1,24 @@
 {
 	"about": {
 		"trial": true,
-      "author": {
-        "name": "EMQ",
-        "email": "contact@emqx.io",
-        "company": "EMQ Technologies Co., Ltd",
-        "website": "https://www.emqx.io"
-      },
-      "description": {
-        "en_US": "Example sink plugin to print with python logger",
-        "zh_CN": "示例 python 插件,使用 python 打出日志"
-      }
-    },
-  "properties": [],
-  "node": {
-    "category": "sink",
-    "icon": "iconPath",
-    "label": {
-      "en": "Print",
-      "zh": "Print"
-    }
-  }
+		"author": {
+			"name": "EMQ",
+			"email": "contact@emqx.io",
+			"company": "EMQ Technologies Co., Ltd",
+			"website": "https://www.emqx.io"
+		},
+		"description": {
+			"en_US": "Example sink plugin to print with python logger",
+			"zh_CN": "示例 python 插件,使用 python 打出日志"
+		}
+	},
+	"properties": [],
+	"node": {
+		"category": "sink",
+		"icon": "iconPath",
+		"label": {
+			"en": "Print",
+			"zh": "打印日志"
+		}
+	}
 }

+ 2 - 6
sdk/python/example/pysam/sources/pyjson.json

@@ -7,10 +7,6 @@
       "company": "EMQ Technologies Co., Ltd",
       "website": "https://www.emqx.io"
     },
-    "helpUrl": {
-      "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/plugins/sources/random.md",
-      "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/plugins/sources/random.md"
-    },
     "description": {
       "en_US": "The python source will send json data.",
       "zh_CN": "Python 源发送数据"
@@ -20,8 +16,8 @@
     "category": "source",
     "icon": "iconPath",
     "label": {
-      "en_US": "Pyjson",
-      "zh_CN": "Pyjson"
+      "en_US": "Python JSON Generator",
+      "zh_CN": "Python JSON 生成器"
     }
   }
 }