@iobroker/json-config 8.4.10 → 8.4.12
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/README.md +8 -0
- package/build/JsonConfigComponent/ConfigFile.d.ts +2 -2
- package/build/JsonConfigComponent/ConfigFile.js +1 -2
- package/build/JsonConfigComponent/ConfigFile.js.map +1 -1
- package/build/JsonConfigComponent/ConfigFileSelector.d.ts +2 -2
- package/build/JsonConfigComponent/ConfigFileSelector.js +6 -4
- package/build/JsonConfigComponent/ConfigFileSelector.js.map +1 -1
- package/build/JsonConfigComponent/ConfigGeneric.d.ts +12 -2
- package/build/JsonConfigComponent/ConfigGeneric.js +54 -20
- package/build/JsonConfigComponent/ConfigGeneric.js.map +1 -1
- package/build/JsonConfigComponent/ConfigObjectId.d.ts +2 -2
- package/build/JsonConfigComponent/ConfigObjectId.js +1 -2
- package/build/JsonConfigComponent/ConfigObjectId.js.map +1 -1
- package/build/JsonConfigComponent/ConfigSelect.js +2 -2
- package/build/JsonConfigComponent/ConfigSelect.js.map +1 -1
- package/build/JsonConfigComponent/i18n/de.json +20 -0
- package/build/JsonConfigComponent/i18n/es.json +20 -0
- package/build/JsonConfigComponent/i18n/fr.json +20 -0
- package/build/JsonConfigComponent/i18n/it.json +20 -0
- package/build/JsonConfigComponent/i18n/nl.json +20 -0
- package/build/JsonConfigComponent/i18n/pl.json +20 -0
- package/build/JsonConfigComponent/i18n/pt.json +20 -0
- package/build/JsonConfigComponent/i18n/ru.json +20 -0
- package/build/JsonConfigComponent/i18n/uk.json +20 -0
- package/build/JsonConfigComponent/i18n/zh-cn.json +20 -0
- package/build/types.d.ts +8 -0
- package/package.json +2 -2
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"jc_A credential with this name already exists": "已存在同名凭证",
|
|
3
|
+
"jc_A unique name is required": "需要一个唯一的名称。",
|
|
2
4
|
"jc_Accept license": "接受许可",
|
|
3
5
|
"jc_Actions": "操作",
|
|
6
|
+
"jc_Add credential": "添加凭据",
|
|
4
7
|
"jc_Add row": "添加行",
|
|
5
8
|
"jc_All items are filtered out": "所有项目都被过滤掉",
|
|
6
9
|
"jc_Append": "附加",
|
|
@@ -9,10 +12,12 @@
|
|
|
9
12
|
"jc_Are you sure?": "你确定吗?",
|
|
10
13
|
"jc_Cancel": "取消",
|
|
11
14
|
"jc_Cannot add items with set filter": "无法使用设置过滤器添加项目",
|
|
15
|
+
"jc_Cannot create credential: %s": "无法创建凭证:%s",
|
|
12
16
|
"jc_Cannot decode license": "无法解码许可证",
|
|
13
17
|
"jc_Cannot determine position: System settings are empty and GPS detection is disabled in browser": "无法确定位置:系统设置为空且浏览器中禁用了 GPS 检测",
|
|
14
18
|
"jc_Cannot read licenses: %s": "无法读取许可证:%s",
|
|
15
19
|
"jc_Cannot retrieve options, as instance is offline": "无法检索选项,因为实例处于脱机状态",
|
|
20
|
+
"jc_Cannot save configuration because of error in configuration": "由于配置错误,无法保存配置。",
|
|
16
21
|
"jc_Cannot upload": "无法上传",
|
|
17
22
|
"jc_Chained certificate": "链式证书",
|
|
18
23
|
"jc_Checked": "勾选",
|
|
@@ -25,9 +30,11 @@
|
|
|
25
30
|
"jc_Copied %s": "复制的\"%s\"",
|
|
26
31
|
"jc_Copy content": "复制内容",
|
|
27
32
|
"jc_Create": "创建",
|
|
33
|
+
"jc_Credential type": "凭证类型",
|
|
28
34
|
"jc_Define schedule": "定义时间表",
|
|
29
35
|
"jc_Delete": "删除",
|
|
30
36
|
"jc_Delete current row": "删除当前行",
|
|
37
|
+
"jc_Disable/Enable translation": "禁用/启用翻译",
|
|
31
38
|
"jc_Discard": "丢弃",
|
|
32
39
|
"jc_Do not use let's encrypt": "不要使用让我们加密",
|
|
33
40
|
"jc_Docker is not available": "Docker 不可用",
|
|
@@ -38,8 +45,10 @@
|
|
|
38
45
|
"jc_Expand/Collapse card": "展开/折叠卡",
|
|
39
46
|
"jc_Export configuration section": "导出配置部分",
|
|
40
47
|
"jc_Export data to %s file": "将数据导出到 %s 文件",
|
|
48
|
+
"jc_Export setting to JSON file": "将设置导出到 JSON 文件",
|
|
41
49
|
"jc_Fallback custom certificates": "后备自定义证书",
|
|
42
50
|
"jc_File is too big. Max %sk allowed. Try use SVG.": "文件太大。允许的最大字节%s数。尝试使用 SVG。",
|
|
51
|
+
"jc_File will be deleted": "文件将被删除",
|
|
43
52
|
"jc_Filter and Data Actions": "过滤和数据操作",
|
|
44
53
|
"jc_Get %s access": "获取 %s 访问权限",
|
|
45
54
|
"jc_If the button above does not work, you can authorize manually this app by visiting this url": "如果上面的按钮不起作用,您可以通过访问此网址手动授权此应用",
|
|
@@ -47,11 +56,13 @@
|
|
|
47
56
|
"jc_Import and replace configuration section": "导入和替换配置部分",
|
|
48
57
|
"jc_Import data from %s file": "从 %s 文件导入数据",
|
|
49
58
|
"jc_Import from %s": "从 %s 导入",
|
|
59
|
+
"jc_Import settings from JSON file": "从 JSON 文件导入设置",
|
|
50
60
|
"jc_Instance %s is alive": "实例 %s 是活动的",
|
|
51
61
|
"jc_Instance %s is not alive": "实例 %s 不存在",
|
|
52
62
|
"jc_Invalid JSON": "JSON 无效",
|
|
53
63
|
"jc_Invalid JSON file.": "无效的JSON文件。",
|
|
54
64
|
"jc_Invalid JSON format. Expected an array.": "JSON格式无效。应为数组。",
|
|
65
|
+
"jc_Invalid YAML": "无效的 YAML",
|
|
55
66
|
"jc_JSON editor": "JSON 编辑器",
|
|
56
67
|
"jc_Latitude": "纬度",
|
|
57
68
|
"jc_License %s": "许可证 %s",
|
|
@@ -59,6 +70,7 @@
|
|
|
59
70
|
"jc_License does not exist": "许可证不存在",
|
|
60
71
|
"jc_License expired on %s": "许可证已于 %s 过期",
|
|
61
72
|
"jc_License for other product \"%s\"": "其他产品“%s”的许可证",
|
|
73
|
+
"jc_License is for version %s, but required version is %s": "许可证适用于版本 %s,但所需版本为 %s。",
|
|
62
74
|
"jc_License must be converted": "许可证必须转换为更新版本。您可以在 iobroker.net 个人资料中执行此操作。",
|
|
63
75
|
"jc_License not found in license manager. Do you want to read licenses from iobroker.net?": "在许可证管理器中找不到许可证。您要从 iobroker.net 更新许可证吗?",
|
|
64
76
|
"jc_Listen on all IPs": "监听所有IP",
|
|
@@ -68,6 +80,7 @@
|
|
|
68
80
|
"jc_Name": "姓名",
|
|
69
81
|
"jc_No one license found in license manager": "许可证管理器中未找到任何许可证",
|
|
70
82
|
"jc_No response from admin": "管理员没有回应",
|
|
83
|
+
"jc_Non-allowed duplicate entry \"%s\" in column \"%s\"": "列“%s”中存在不允许的重复条目“%s”。",
|
|
71
84
|
"jc_OAuth Client ID": "OAuth客户端ID",
|
|
72
85
|
"jc_OAuth Client secret": "OAuth 客户端密钥",
|
|
73
86
|
"jc_Ok": "好",
|
|
@@ -77,6 +90,7 @@
|
|
|
77
90
|
"jc_Please confirm": "请确认",
|
|
78
91
|
"jc_Please create license": "请创建许可证",
|
|
79
92
|
"jc_Please enter the license": "请输入许可证",
|
|
93
|
+
"jc_Please fill in all required fields": "请填写所有必填字段",
|
|
80
94
|
"jc_Port could be used by %s": "%s 可以使用端口",
|
|
81
95
|
"jc_Port is already used by %s": "端口已被 %s 使用",
|
|
82
96
|
"jc_Press ENTER Key to add new item": "按 ENTER 键添加新项目",
|
|
@@ -85,8 +99,11 @@
|
|
|
85
99
|
"jc_Public certificate": "公共证书",
|
|
86
100
|
"jc_Renew %s access": "续订 %s 访问权限",
|
|
87
101
|
"jc_Replace": "代替",
|
|
102
|
+
"jc_Request data by instance": "按实例请求数据",
|
|
88
103
|
"jc_Request timed out": "请求超时",
|
|
104
|
+
"jc_Result": "结果",
|
|
89
105
|
"jc_Save": "保存",
|
|
106
|
+
"jc_Save configuration?": "保存配置?",
|
|
90
107
|
"jc_Serial number (UUID)": "序列号 (UUID)",
|
|
91
108
|
"jc_Serial number (UUID) \"%s\" in license is for other device.": "许可证中的序列号 (UUID)“%s”用于其他设备。",
|
|
92
109
|
"jc_Show/hide filter input": "显示/隐藏过滤器输入",
|
|
@@ -97,6 +114,7 @@
|
|
|
97
114
|
"jc_System language": "系统语言",
|
|
98
115
|
"jc_Take browser position": "从浏览器获取位置",
|
|
99
116
|
"jc_Take position from system settings": "从系统设置中获取位置",
|
|
117
|
+
"jc_Template": "模板",
|
|
100
118
|
"jc_Use all available let's encrypt certificates": "使用所有可用的让我们加密证书",
|
|
101
119
|
"jc_Use system settings for position": "使用系统设置定位",
|
|
102
120
|
"jc_Used system settings": "使用的系统设置",
|
|
@@ -105,6 +123,8 @@
|
|
|
105
123
|
"jc_YAML editor": "YAML 编辑器",
|
|
106
124
|
"jc_Yes": "是的",
|
|
107
125
|
"jc_You can filter entries by entering here some text": "您可以通过在此处输入一些文本来过滤条目",
|
|
126
|
+
"jc_[JsonConfig] Failed to open JSON File": "[JsonConfig] 打开 JSON 文件失败",
|
|
127
|
+
"jc_[JsonConfig] Failed to parse JSON file": "[JsonConfig] 解析 JSON 文件失败",
|
|
108
128
|
"jc___different__": "不同的",
|
|
109
129
|
"jc_false": "错误的",
|
|
110
130
|
"jc_locally": "本地",
|
package/build/types.d.ts
CHANGED
|
@@ -212,6 +212,11 @@ export interface ConfigItem {
|
|
|
212
212
|
/** If the control should be shown ONLY in the expert mode */
|
|
213
213
|
expertMode?: boolean;
|
|
214
214
|
noMultiEdit?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* If true, the evaluation of JS functions of this element (`hidden`, `disabled`, `validator`,
|
|
217
|
+
* `defaultFunc`, `onChange.calculateFunc`, `confirm.condition`) is logged to the browser console.
|
|
218
|
+
*/
|
|
219
|
+
debug?: boolean;
|
|
215
220
|
confirm?: ConfigItemConfirmData;
|
|
216
221
|
icon?: ConfigIconType;
|
|
217
222
|
width?: string | number;
|
|
@@ -261,6 +266,8 @@ export interface ConfigItemSelectOption {
|
|
|
261
266
|
description?: ioBroker.StringOrTranslated;
|
|
262
267
|
/** Icon URL or base64 to display next to the option */
|
|
263
268
|
icon?: string;
|
|
269
|
+
/** Do not translate this option */
|
|
270
|
+
noTranslation?: boolean;
|
|
264
271
|
}
|
|
265
272
|
|
|
266
273
|
export interface ConfigItemPanel extends ConfigItem {
|
|
@@ -623,6 +630,7 @@ export interface ConfigItemSelect extends ConfigItem {
|
|
|
623
630
|
color?: string;
|
|
624
631
|
hidden?: string | boolean;
|
|
625
632
|
description?: ioBroker.StringOrTranslated;
|
|
633
|
+
noTranslation?: boolean;
|
|
626
634
|
icon?: string;
|
|
627
635
|
}
|
|
628
636
|
)[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/json-config",
|
|
3
3
|
"description": "This package contains the ioBroker JSON config UI components",
|
|
4
|
-
"version": "8.4.
|
|
4
|
+
"version": "8.4.12",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "bluefox",
|
|
7
7
|
"email": "dogafox@gmail.com"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@emotion/react": "^11.14.0",
|
|
39
39
|
"@emotion/styled": "^11.14.1",
|
|
40
|
-
"@iobroker/adapter-react-v5": "^8.2.
|
|
40
|
+
"@iobroker/adapter-react-v5": "^8.2.13",
|
|
41
41
|
"@module-federation/runtime": "^2.3.3",
|
|
42
42
|
"@mui/x-date-pickers": "^7.29.4",
|
|
43
43
|
"crypto-js": "^4.2.0",
|