@dobot-plus/template 1.0.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.
- package/.dobot/.sftprc +3 -0
- package/.dobot/components/DobotPlusApp.tsx +78 -0
- package/.dobot/http/api.json +11 -0
- package/.dobot/http/api.ts +26 -0
- package/.dobot/http/api.ts.txt +26 -0
- package/.dobot/http/axios.ts +52 -0
- package/.dobot/http/axios.ts.txt +52 -0
- package/.dobot/http/http.ts +22 -0
- package/.dobot/http/http.ts.txt +22 -0
- package/.dobot/index.ts +2 -0
- package/.dobot/index.txt +2 -0
- package/.dobot/protocol/keyBoard.ts +18 -0
- package/.dobot/protocol/keyBoard.ts.txt +18 -0
- package/.dobot/protocol/methodsHandler.ts +15 -0
- package/.dobot/protocol/methodsHandler.ts.txt +15 -0
- package/.dobot/protocol/postMessageCenter.ts +50 -0
- package/.dobot/protocol/postMessageCenter.ts.txt +38 -0
- package/.dobot/protocol/postMessageHandler.ts +289 -0
- package/.dobot/protocol/postMessageHandler.ts.txt +289 -0
- package/.dobot/protocol/websocketHandler.ts +234 -0
- package/.dobot/protocol/websocketHandler.ts.txt +234 -0
- package/.dobot/shim.d.ts +3 -0
- package/.dobot/shim.d.ts.txt +3 -0
- package/.dobot/store/actions/toolActions.ts +69 -0
- package/.dobot/store/actions/toolActions.ts.txt +69 -0
- package/.dobot/store/actions/userMagamentActions.ts +25 -0
- package/.dobot/store/actions/userMagamentActions.ts.txt +25 -0
- package/.dobot/store/index.ts +7 -0
- package/.dobot/store/index.ts.txt +7 -0
- package/.dobot/store/reducers/index.ts +8 -0
- package/.dobot/store/reducers/index.ts.txt +8 -0
- package/.dobot/store/reducers/toolReducer.ts +152 -0
- package/.dobot/store/reducers/toolReducer.ts.txt +149 -0
- package/.dobot/store/reducers/userMagamentReducer.ts +38 -0
- package/.dobot/store/reducers/userMagamentReducer.ts.txt +35 -0
- package/.dobot/store/types.ts +240 -0
- package/.dobot/store/types.ts.txt +237 -0
- package/.dobot/template/default.tsx.mustache +20 -0
- package/.dobot/template/entry.css +26 -0
- package/.dobot/template/entry.tsx +53 -0
- package/.dobot/template/index.html +23 -0
- package/.dobot/template/index.scss +5 -0
- package/.dobot/utils/i18n.ts +31 -0
- package/.dobot/utils/i18n.ts.txt +31 -0
- package/.dobot/utils/mqtt.ts +61 -0
- package/.dobot/utils/mqtt.ts.txt +61 -0
- package/.dobot/utils/rem.js +21 -0
- package/.dobot/utils/rem.js.txt +21 -0
- package/.dobot/utils/tool.ts +15 -0
- package/.dobot/utils/tool.ts.txt +15 -0
- package/.eslintrc.cjs +18 -0
- package/.luarc.json +17 -0
- package/.vscode/Api.schema.json +103 -0
- package/.vscode/Blocks.schema.json +94 -0
- package/.vscode/Main.schema.json +42 -0
- package/.vscode/Script.schema.json +22 -0
- package/.vscode/Toolbar.schema.json +19 -0
- package/.vscode/extensions.json +8 -0
- package/.vscode/settings.json +52 -0
- package/Resources/document/config.json +0 -0
- package/Resources/i18n/client/de.json +11 -0
- package/Resources/i18n/client/en.json +11 -0
- package/Resources/i18n/client/es.json +11 -0
- package/Resources/i18n/client/hk.json +11 -0
- package/Resources/i18n/client/ja.json +11 -0
- package/Resources/i18n/client/ko.json +11 -0
- package/Resources/i18n/client/ru.json +11 -0
- package/Resources/i18n/client/zh.json +11 -0
- package/Resources/i18n/plugin/de.json +3 -0
- package/Resources/i18n/plugin/en.json +3 -0
- package/Resources/i18n/plugin/es.json +3 -0
- package/Resources/i18n/plugin/hk.json +3 -0
- package/Resources/i18n/plugin/ja.json +3 -0
- package/Resources/i18n/plugin/ko.json +3 -0
- package/Resources/i18n/plugin/ru.json +3 -0
- package/Resources/i18n/plugin/zh.json +3 -0
- package/Resources/images/pallet.svg +1 -0
- package/configs/Blocks.json +21 -0
- package/configs/Main.json +5 -0
- package/configs/Scripts.json +7 -0
- package/configs/Toolbar.json +5 -0
- package/dpt.json +4 -0
- package/lua/control.lua +19 -0
- package/lua/daemon.lua +22 -0
- package/lua/httpAPI.lua +65 -0
- package/lua/userAPI.lua +51 -0
- package/lua/utils/await485.lua +55 -0
- package/lua/utils/mqtt.lua +17 -0
- package/lua/utils/num_convert.lua +41 -0
- package/lua/utils/tcp.lua +31 -0
- package/lua/utils/util.lua +31 -0
- package/lua/utils/variables.lua +0 -0
- package/package.json +51 -0
- package/project.json +3 -0
- package/tsconfig.json +27 -0
- package/ui/Blocks.tsx +5 -0
- package/ui/Main.tsx +31 -0
- package/ui/Toolbar.tsx +5 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "AxiosRequestConfig",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"description": "The request config.",
|
|
5
|
+
"patternProperties": {
|
|
6
|
+
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"url": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The URL to send the request to."
|
|
12
|
+
},
|
|
13
|
+
"method": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "The HTTP method to use for the request.",
|
|
16
|
+
"enum": ["get", "post", "put", "delete", "patch", "options", "head"]
|
|
17
|
+
},
|
|
18
|
+
"baseURL": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The base URL to be used in requests."
|
|
21
|
+
},
|
|
22
|
+
"headers": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"description": "HTTP headers to be sent with the request.",
|
|
25
|
+
"additionalProperties": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"params": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"description": "URL parameters to be sent with the request.",
|
|
32
|
+
"additionalProperties": {
|
|
33
|
+
"type": ["string", "number", "boolean", "null", "array", "object"]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"data": {
|
|
37
|
+
"description": "The data to be sent as the request body.",
|
|
38
|
+
"type": ["string", "object", "array", "null"]
|
|
39
|
+
},
|
|
40
|
+
"timeout": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"description": "The number of milliseconds before the request times out."
|
|
43
|
+
},
|
|
44
|
+
"withCredentials": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "Indicates whether or not cross-site Access-Control requests should be made using credentials."
|
|
47
|
+
},
|
|
48
|
+
"responseType": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Indicates the type of data that the server will respond with.",
|
|
51
|
+
"enum": ["arraybuffer", "document", "json", "text", "stream", "blob"]
|
|
52
|
+
},
|
|
53
|
+
"maxContentLength": {
|
|
54
|
+
"type": "number",
|
|
55
|
+
"description": "Specifies the max number of bytes for the content of the request."
|
|
56
|
+
},
|
|
57
|
+
"validateStatus": {
|
|
58
|
+
"description": "Defines whether to resolve or reject the promise for a given HTTP status code.",
|
|
59
|
+
"instanceof": "Function"
|
|
60
|
+
},
|
|
61
|
+
"maxRedirects": {
|
|
62
|
+
"type": "number",
|
|
63
|
+
"description": "The maximum number of redirects to follow in node.js."
|
|
64
|
+
},
|
|
65
|
+
"socketPath": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "The UNIX socket to be used in node.js."
|
|
68
|
+
},
|
|
69
|
+
"proxy": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"description": "Proxy configuration to use for the request.",
|
|
72
|
+
"properties": {
|
|
73
|
+
"host": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"port": {
|
|
77
|
+
"type": "number"
|
|
78
|
+
},
|
|
79
|
+
"auth": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"username": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"password": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": ["username", "password"]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": ["host", "port"]
|
|
93
|
+
},
|
|
94
|
+
"cancelToken": {
|
|
95
|
+
"description": "A cancel token that can be used to cancel the request.",
|
|
96
|
+
"instanceof": "CancelToken"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": [],
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"block_name": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"block_color": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "color"
|
|
12
|
+
},
|
|
13
|
+
"block_type": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["shape_hat", "shape_end", "shape_statement", "output_string", "output_boolean", "output_number"]
|
|
16
|
+
},
|
|
17
|
+
"block_popup": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"title": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"page": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"width": {
|
|
27
|
+
"type": "number"
|
|
28
|
+
},
|
|
29
|
+
"height": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": ["title", "page"]
|
|
34
|
+
},
|
|
35
|
+
"block_configs": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"message": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"params": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"param_type": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": ["input_value", "field_dropdown", "input_statement"]
|
|
51
|
+
},
|
|
52
|
+
"data_type": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": ["math_number", "text", ""]
|
|
55
|
+
},
|
|
56
|
+
"name": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"default": {
|
|
60
|
+
"type": ["string", "number", "boolean"]
|
|
61
|
+
},
|
|
62
|
+
"options": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"label": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"value": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": ["label", "value"]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": ["param_type", "name"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": ["message"]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"block_code": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": ["block_name", "block_type", "block_configs"]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"name": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"description": "The name of the application."
|
|
7
|
+
},
|
|
8
|
+
"version": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The version of the application."
|
|
11
|
+
},
|
|
12
|
+
"description": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The description of the application."
|
|
15
|
+
},
|
|
16
|
+
"versionRestricted": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The version of the application that has restrictions."
|
|
19
|
+
},
|
|
20
|
+
"permissionsRequired": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Indicates if permissions are required for the application."
|
|
23
|
+
},
|
|
24
|
+
"applicationDisplayed": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"applicationTitle": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "The title of the application as displayed to the user."
|
|
30
|
+
},
|
|
31
|
+
"applicationImage": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The image associated with the application."
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": ["applicationTitle", "applicationImage"],
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": ["name", "version", "description", "versionRestricted", "permissionsRequired", "applicationDisplayed"],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"script_name": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "The name of the script."
|
|
9
|
+
},
|
|
10
|
+
"message": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The message associated with the script, typically used for localization."
|
|
13
|
+
},
|
|
14
|
+
"script_code": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The code of the script."
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": ["script_name", "message", "script_code"],
|
|
20
|
+
"additionalProperties": false
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"name": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"description": "The name of the toolbar, typically used for localization."
|
|
7
|
+
},
|
|
8
|
+
"width": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"description": "The width of the toolbar in pixels."
|
|
11
|
+
},
|
|
12
|
+
"height": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"description": "The height of the toolbar in pixels."
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": ["name", "width", "height"],
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"json.schemas": [
|
|
3
|
+
{
|
|
4
|
+
"fileMatch": [
|
|
5
|
+
"configs/Blocks.json"
|
|
6
|
+
],
|
|
7
|
+
"url": ".vscode/Blocks.schema.json"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"fileMatch": [
|
|
11
|
+
"configs/Toolbar.json"
|
|
12
|
+
],
|
|
13
|
+
"url": ".vscode/Toolbar.schema.json"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"fileMatch": [
|
|
17
|
+
"configs/Main.json"
|
|
18
|
+
],
|
|
19
|
+
"url": ".vscode/Main.schema.json"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"fileMatch": [
|
|
23
|
+
"configs/Scripts.json"
|
|
24
|
+
],
|
|
25
|
+
"url": ".vscode/Script.schema.json"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"fileMatch": [
|
|
29
|
+
"api.json"
|
|
30
|
+
],
|
|
31
|
+
"url": ".vscode/Api.schema.json"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"i18n-ally.localesPaths": ["Resources/i18n/client", "Resources/i18n/plugin"],
|
|
35
|
+
"i18n-ally.sourceLanguage": "zh",
|
|
36
|
+
"i18n-ally.enabledFrameworks": ["react-i18next", "react"],
|
|
37
|
+
"i18n-ally.keystyle": "flat",
|
|
38
|
+
"cSpell.words": [
|
|
39
|
+
"DOBOTPLUS",
|
|
40
|
+
"dobot"
|
|
41
|
+
],
|
|
42
|
+
"[lua]": {
|
|
43
|
+
"editor.defaultFormatter": "yinfei.luahelper",
|
|
44
|
+
"editor.formatOnSave": true,
|
|
45
|
+
"editor.quickSuggestions": {
|
|
46
|
+
"other": "on",
|
|
47
|
+
"comments": "on",
|
|
48
|
+
"strings": "on"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"luahelper.Warn.AllEnable": true
|
|
52
|
+
}
|
|
File without changes
|