ztxkutils 2.10.66-25-beta → 2.10.66-27
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/businessTools.js +4 -3
- package/dist/dataModel-6c68c88f.js +26 -0
- package/dist/dataModel-914b6226.js +26 -0
- package/dist/dataModel.js +2 -1
- package/dist/hooks.js +34 -22
- package/dist/i18next.js +21 -0
- package/dist/index.js +4 -3
- package/dist/myIndexDb.d.ts +1 -1
- package/dist/print.d.ts +2 -4
- package/dist/print.js +264 -299
- package/dist/reqUrl-22b880a4.js +82 -0
- package/dist/request-1e442d5d.js +2982 -0
- package/dist/request-986d7090.js +2923 -0
- package/dist/request-c0970aae.js +2917 -0
- package/dist/request-d8d72b87.js +2982 -0
- package/dist/request.js +2 -1
- package/dist/stompClient.js +21 -8
- package/dist/tools-16a7fb45.js +2446 -0
- package/dist/validate-21164759.js +260 -0
- package/dist/validate-2de5a28f.js +260 -0
- package/dist/validate.js +2 -1
- package/dist/workflow.js +3 -5
- package/locales/en-US.json +64 -0
- package/locales/zh-CN.json +64 -0
- package/package.json +3 -2
- package/zti18n-cli/src/utils/reactOptions.js +2 -2
- package/zti18n-core/src/transform/transformJs.js +2 -1
@@ -0,0 +1,64 @@
|
|
1
|
+
{
|
2
|
+
"拦截重复请求": "拦截重复请求",
|
3
|
+
"切换将清空已选数据!": "切换将清空已选数据!",
|
4
|
+
"确认": "确认",
|
5
|
+
"取消": "取消",
|
6
|
+
"数据请求成功": "数据请求成功",
|
7
|
+
"数据请求失败": "数据请求失败",
|
8
|
+
"必须传入获取Ws长连接的方法": "必须传入获取Ws长连接的方法",
|
9
|
+
"获取ws链接地址失败!": "获取ws链接地址失败!",
|
10
|
+
"获取ws地址失败!": "获取ws地址失败!",
|
11
|
+
"浏览器不支持WebSocket": "浏览器不支持WebSocket",
|
12
|
+
"连接建立": "连接建立",
|
13
|
+
"识别结果:": "识别结果:",
|
14
|
+
"ws连接出错了!": "ws连接出错了!",
|
15
|
+
"连接异常": "连接异常",
|
16
|
+
"连接关闭": "连接关闭",
|
17
|
+
"你没有引入路由相关API,请引入!": "你没有引入路由相关API,请引入!",
|
18
|
+
"握手成功": "握手成功",
|
19
|
+
"收到讯飞的语音提示": "收到讯飞的语音提示",
|
20
|
+
"出错了:": "出错了:",
|
21
|
+
"连接出错了": "连接出错了",
|
22
|
+
"收到录音的最后帧!": "收到录音的最后帧!",
|
23
|
+
"你没有传入 获取指令的接口,这将导致错误!": "你没有传入 获取指令的接口,这将导致错误!",
|
24
|
+
"不支持处理该指令,请重说!": "不支持处理该指令,请重说!",
|
25
|
+
"{{slot0}} 第{{slot1}}行{{title}} {{slot2}}": "{{slot0}} 第{{slot1}}行{{title}} {{slot2}}",
|
26
|
+
"{{slot0}} 第{{slot1}}行{{title}}为空!": "{{slot0}} 第{{slot1}}行{{title}}为空!",
|
27
|
+
"中文": "中文",
|
28
|
+
"英文": "英文",
|
29
|
+
"数据库打开成功": "数据库打开成功",
|
30
|
+
"数据库打开报错!": "数据库打开报错!",
|
31
|
+
"浙商中拓": "浙商中拓",
|
32
|
+
"{{slot0}} 微软雅黑": "{{slot0}} 微软雅黑",
|
33
|
+
"刷新token遭到频繁调用,请联系管理员查看是否接口权限出现问题,可能是{{slot0}}接口出现问题": "刷新token遭到频繁调用,请联系管理员查看是否接口权限出现问题,可能是{{slot0}}接口出现问题",
|
34
|
+
"token已经刷新成功,请重新提交!": "token已经刷新成功,请重新提交!",
|
35
|
+
"登录过期!": "登录过期!",
|
36
|
+
"请求超时,请稍后再试,请去列表确认数据是否插入成功,请勿重复提交! 接口地址:{{slot0}} 请求方式:{{slot1}} 请求超时时间:{{slot2}}": "请求超时,请稍后再试,请去列表确认数据是否插入成功,请勿重复提交! 接口地址:{{slot0}} 请求方式:{{slot1}} 请求超时时间:{{slot2}}",
|
37
|
+
"接口: {{slot0}} 未找到!": "接口: {{slot0}} 未找到!",
|
38
|
+
"你的账号已在其他地方登录!": "你的账号已在其他地方登录!",
|
39
|
+
"连接已发起,但是10秒后未成功建立连接,手动断开重连!system={{slot0}}": "连接已发起,但是10秒后未成功建立连接,手动断开重连!system={{slot0}}",
|
40
|
+
"---连接未建立的关闭出错---": "---连接未建立的关闭出错---",
|
41
|
+
"---第{{slot0}}次重连!time={{slot1}}system={{slot2}}---": "---第{{slot0}}次重连!time={{slot1}}system={{slot2}}---",
|
42
|
+
"---------连接成功 time={{slot0}} system={{slot1}} time={{slot2}}--------": "---------连接成功 time={{slot0}} system={{slot1}} time={{slot2}}--------",
|
43
|
+
"---------连接失败 system={{slot0}} time={{slot1}}--------": "---------连接失败 system={{slot0}} time={{slot1}}--------",
|
44
|
+
"用户主动关闭": "用户主动关闭",
|
45
|
+
"---连接已建立的关闭出错 time={{slot0}}system={{slot1}}---": "---连接已建立的关闭出错 time={{slot0}}system={{slot1}}---",
|
46
|
+
"---第{{slot0}}次重连!time={{slot1}}system={{slot2}}": "---第{{slot0}}次重连!time={{slot1}}system={{slot2}}",
|
47
|
+
"{{type}}超过最大字符长度200": "{{type}}超过最大字符长度200",
|
48
|
+
"{{type}}超过最大字符长度400": "{{type}}超过最大字符长度400",
|
49
|
+
"{{type}}超过最大字符长度600": "{{type}}超过最大字符长度600",
|
50
|
+
"{{type}}超过最大字符长度5000": "{{type}}超过最大字符长度5000",
|
51
|
+
"请输入正确的手机号": "请输入正确的手机号",
|
52
|
+
"请输入正确的身份证": "请输入正确的身份证",
|
53
|
+
"请输入正确的邮箱": "请输入正确的邮箱",
|
54
|
+
"密码必须包含大小写字母、数字、特殊字符且最小长度为8,且不能出现连续数字或字符,不能出现相同字符,且禁止使用用户账号作为密码": "密码必须包含大小写字母、数字、特殊字符且最小长度为8,且不能出现连续数字或字符,不能出现相同字符,且禁止使用用户账号作为密码",
|
55
|
+
"请勿输入空格": "请勿输入空格",
|
56
|
+
"密码中必须包含大小写字母、数字、特殊字符,且长度必须大于8个字符!": "密码中必须包含大小写字母、数字、特殊字符,且长度必须大于8个字符!",
|
57
|
+
"密码与用户名相同!": "密码与用户名相同!",
|
58
|
+
"密码中有相同且连续超过三次的字符!": "密码中有相同且连续超过三次的字符!",
|
59
|
+
"从第{{slot0}}个字符开始,有连续{{slot1}}超过三位的字母或数字!": "从第{{slot0}}个字符开始,有连续{{slot1}}超过三位的字母或数字!",
|
60
|
+
"从第{{slot0}}个字符开始,有按键盘横向连续{{slot1}}超过三位的字母!": "从第{{slot0}}个字符开始,有按键盘横向连续{{slot1}}超过三位的字母!",
|
61
|
+
"从第{{slot0}}个字符开始,有按键盘竖向连续{{slot1}}超过三位的字母或数字!": "从第{{slot0}}个字符开始,有按键盘竖向连续{{slot1}}超过三位的字母或数字!",
|
62
|
+
"父页面传递过来的消息": "父页面传递过来的消息",
|
63
|
+
"父页面传递过来的消息解析报错": "父页面传递过来的消息解析报错"
|
64
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ztxkutils",
|
3
|
-
"version": "2.10.66-
|
3
|
+
"version": "2.10.66-27",
|
4
4
|
"description": "",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.js",
|
@@ -12,7 +12,8 @@
|
|
12
12
|
"files": [
|
13
13
|
"dist",
|
14
14
|
"./zti18n-cli",
|
15
|
-
"./zti18n-core"
|
15
|
+
"./zti18n-core",
|
16
|
+
"./locales"
|
16
17
|
],
|
17
18
|
"keywords": [],
|
18
19
|
"author": "ZTXK",
|
@@ -45,11 +45,11 @@ module.exports = {
|
|
45
45
|
supportedLocales: ['zh-CN', 'en-US'],
|
46
46
|
|
47
47
|
// import codes, <string>
|
48
|
-
importCode: "import
|
48
|
+
importCode: "import i18next from 'ztxkutils/dist/i18next';",
|
49
49
|
|
50
50
|
// i18n object, <string>
|
51
51
|
// e.g. 'intl'
|
52
|
-
i18nObject: '
|
52
|
+
i18nObject: 'i18next',
|
53
53
|
|
54
54
|
// i18n method, <string>
|
55
55
|
// e.g. 't'
|
@@ -216,7 +216,7 @@ function makeVisitor(
|
|
216
216
|
|
217
217
|
const isTsLiteralType =
|
218
218
|
node.type === 'StringLiteral' &&
|
219
|
-
['TSLiteralType'
|
219
|
+
['TSLiteralType'].includes(path.parent.type);
|
220
220
|
if (!shouldIgnore(node) && isPrimary(node.value) && !isTsLiteralType) {
|
221
221
|
switch (path.parent.type) {
|
222
222
|
case 'ObjectProperty':
|
@@ -235,6 +235,7 @@ function makeVisitor(
|
|
235
235
|
break;
|
236
236
|
case 'NewExpression':
|
237
237
|
// XXX: 会出现吗?
|
238
|
+
path.replaceWith(makeReplace(value));
|
238
239
|
break;
|
239
240
|
case 'JSXAttribute':
|
240
241
|
if (ignoreComponents.includes(path.parentPath.parent.name.name)) {
|