ztxkutils 2.10.66-30 → 2.10.66-31
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/package.json +112 -112
- package/zti18n-cli/bin/index.js +3 -3
- package/zti18n-cli/index.js +23 -23
- package/zti18n-cli/src/command/collect.js +353 -353
- package/zti18n-cli/src/command/convert.js +17 -17
- package/zti18n-cli/src/command/convert2.js +35 -35
- package/zti18n-cli/src/command/initFileConf.js +133 -133
- package/zti18n-cli/src/command/publish.js +24 -24
- package/zti18n-cli/src/conf/BaseConf.js +21 -21
- package/zti18n-cli/src/conf/FileConf.js +116 -116
- package/zti18n-cli/src/index.js +75 -75
- package/zti18n-cli/src/translate/google.js +87 -87
- package/zti18n-cli/src/utils/isChinese.js +3 -3
- package/zti18n-cli/src/utils/log.js +8 -8
- package/zti18n-cli/src/utils/mergeOptions.js +45 -45
- package/zti18n-cli/src/utils/reactOptions.js +73 -73
- package/zti18n-cli/src/utils/vueOptions.js +69 -69
- package/zti18n-core/index.js +1 -1
- package/zti18n-core/src/index.js +5 -5
- package/zti18n-core/src/plugin/reactIntlToReactIntlUniversal.js +224 -224
- package/zti18n-core/src/plugin/reactIntlUniversalToDi18n.js +64 -64
- package/zti18n-core/src/transform/defaultPkMap.js +79 -79
- package/zti18n-core/src/transform/transformHtml.js +271 -271
- package/zti18n-core/src/transform/transformJs.js +489 -489
- package/zti18n-core/src/transform/transformPug.js +272 -272
- package/zti18n-core/src/transform/transformReactIntlToReactIntlUniversal.js +96 -96
- package/zti18n-core/src/transform/transformReactIntlUniveralToDi18n.js +90 -90
- package/zti18n-core/src/transform/transformToDi18n.js +22 -22
- package/zti18n-core/src/transform/transformTs.js +41 -41
- package/zti18n-core/src/transform/transformVue.js +126 -126
- package/zti18n-core/src/transform/transformZeroToDi18n.js +105 -105
- package/zti18n-core/src/translate/google.js +6 -6
- package/zti18n-core/src/utils/constants.js +3 -3
- package/zti18n-core/src/utils/getIgnoreLines.js +14 -14
- package/zti18n-core/src/utils/isChinese.js +3 -3
- package/zti18n-core/src/utils/log.js +8 -8
- package/dist/dataModel-1fbaff40.js +0 -24
- package/dist/dataModel-6c68c88f.js +0 -26
- package/dist/dataModel-914b6226.js +0 -26
- package/dist/dataModel-b3629ef3.js +0 -26
- package/dist/reqUrl-22b880a4.js +0 -82
- package/dist/request-1e442d5d.js +0 -2982
- package/dist/request-4c29d6de.js +0 -2977
- package/dist/request-80d1ac80.js +0 -2992
- package/dist/request-986d7090.js +0 -2923
- package/dist/request-c0970aae.js +0 -2917
- package/dist/request-d1972b41.js +0 -2992
- package/dist/request-d8d72b87.js +0 -2982
- package/dist/request-f600ad7a.js +0 -2992
- package/dist/tools-16a7fb45.js +0 -2446
- package/dist/validate-18e52490.js +0 -249
- package/dist/validate-21164759.js +0 -260
- package/dist/validate-21b58a69.js +0 -260
- package/dist/validate-2de5a28f.js +0 -260
- package/dist/validate-ab47ebe9.js +0 -260
package/package.json
CHANGED
@@ -1,112 +1,112 @@
|
|
1
|
-
{
|
2
|
-
"name": "ztxkutils",
|
3
|
-
"version": "2.10.66-
|
4
|
-
"description": "",
|
5
|
-
"main": "./dist/index.js",
|
6
|
-
"module": "./dist/index.js",
|
7
|
-
"types": "./dist/index.d.js",
|
8
|
-
"scripts": {
|
9
|
-
"build": "rollup -c",
|
10
|
-
"prepublish": "yarn build"
|
11
|
-
},
|
12
|
-
"files": [
|
13
|
-
"dist",
|
14
|
-
"./zti18n-cli",
|
15
|
-
"./zti18n-core",
|
16
|
-
"./locales"
|
17
|
-
],
|
18
|
-
"keywords": [],
|
19
|
-
"author": "ZTXK",
|
20
|
-
"license": "MIT",
|
21
|
-
"bin": {
|
22
|
-
"zti18n": "./zti18n-cli/bin/index.js"
|
23
|
-
},
|
24
|
-
"devDependencies": {
|
25
|
-
"@rollup/plugin-commonjs": "^19.0.0",
|
26
|
-
"@rollup/plugin-json": "^4.1.0",
|
27
|
-
"@rollup/plugin-node-resolve": "^13.0.0",
|
28
|
-
"@types/crypto-js": "^4.0.1",
|
29
|
-
"@types/react": "^17.0.0",
|
30
|
-
"@types/react-dom": "^17.0.0",
|
31
|
-
"@typescript-eslint/eslint-plugin": "^4.19.0",
|
32
|
-
"@typescript-eslint/parser": "^4.19.0",
|
33
|
-
"axios": "^0.21.1",
|
34
|
-
"dayjs": "^1.10.4",
|
35
|
-
"eslint": "^7.22.0",
|
36
|
-
"eslint-config-prettier": "^8.1.0",
|
37
|
-
"eslint-plugin-prettier": "^3.3.1",
|
38
|
-
"eslint-webpack-plugin": "^2.5.4",
|
39
|
-
"html2canvas": "^1.4.1",
|
40
|
-
"jspdf": "^2.5.1",
|
41
|
-
"lodash": "^4.17.21",
|
42
|
-
"number-precision": "^1.5.0",
|
43
|
-
"prettier": "^2.2.1",
|
44
|
-
"pubsub-js": "^1.9.3",
|
45
|
-
"react": "^17.0.2",
|
46
|
-
"react-dom": "^17.0.1",
|
47
|
-
"react-router-dom": "5.2",
|
48
|
-
"rollup": "^2.47.0",
|
49
|
-
"rollup-plugin-typescript2": "^0.30.0",
|
50
|
-
"ts-loader": "^8.0.18",
|
51
|
-
"tslib": "^2.2.0",
|
52
|
-
"typescript": "^4.2.4",
|
53
|
-
"ztxkui": "^0.4.1"
|
54
|
-
},
|
55
|
-
"dependencies": {
|
56
|
-
"@babel/core": "^7.18.10",
|
57
|
-
"@babel/generator": "^7.18.0",
|
58
|
-
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
59
|
-
"@babel/plugin-syntax-async-generators": "^7.8.4",
|
60
|
-
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
61
|
-
"@babel/plugin-syntax-decorators": "^7.18.6",
|
62
|
-
"@babel/plugin-syntax-do-expressions": "^7.18.6",
|
63
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
64
|
-
"@babel/plugin-syntax-flow": "^7.18.6",
|
65
|
-
"@babel/plugin-syntax-function-bind": "^7.18.6",
|
66
|
-
"@babel/plugin-syntax-function-sent": "^7.18.6",
|
67
|
-
"@babel/plugin-syntax-jsx": "^7.18.6",
|
68
|
-
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
69
|
-
"@babel/preset-typescript": "^7.18.6",
|
70
|
-
"@babel/traverse": "^7.18.10",
|
71
|
-
"@babel/types": "^7.18.10",
|
72
|
-
"@prettier/plugin-pug": "^1.8.1",
|
73
|
-
"@typescript-eslint/typescript-estree": "^3.8.0",
|
74
|
-
"babel-template": "^6.26.0",
|
75
|
-
"chalk": "^3.0.0",
|
76
|
-
"commander": "^2.18.0",
|
77
|
-
"crypto-js": "^4.1.1",
|
78
|
-
"decimal.js-light": "^2.5.1",
|
79
|
-
"dexie": "^3.2.3",
|
80
|
-
"di18n-core": "^0.1.29",
|
81
|
-
"glob": "^7.1.6",
|
82
|
-
"i18next": "^23.16.4",
|
83
|
-
"inquirer": "^6.2.2",
|
84
|
-
"js-base64": "^3.6.0",
|
85
|
-
"jwt-decode": "^3.1.2",
|
86
|
-
"mustache": "^4.0.1",
|
87
|
-
"parse5": "^5.1.1",
|
88
|
-
"pug-lexer": "^4.1.0",
|
89
|
-
"pug-parser": "^5.0.1",
|
90
|
-
"pug-source-gen": "0.0.2",
|
91
|
-
"screenfull": "^5.1.0",
|
92
|
-
"sockjs-client": "^1.5.1",
|
93
|
-
"stompjs": "^2.3.3",
|
94
|
-
"vue-template-compiler": "^2.7.16",
|
95
|
-
"zt-sockjs-client": "^0.0.2",
|
96
|
-
"zt-stompjs": "^1.1.2"
|
97
|
-
},
|
98
|
-
"peerDependencies": {
|
99
|
-
"axios": ">=0.21.1",
|
100
|
-
"dayjs": ">=1.10.4",
|
101
|
-
"html2canvas": ">=1.4.1",
|
102
|
-
"jspdf": ">=2.5.1",
|
103
|
-
"lodash": ">=4.17.21",
|
104
|
-
"number-precision": ">=1.5.0",
|
105
|
-
"react": ">=17.0.1",
|
106
|
-
"react-dom": ">=17.0.1",
|
107
|
-
"react-router-dom": ">=5.2.0",
|
108
|
-
"zt-sockjs-client": ">=0.0.1",
|
109
|
-
"zt-stompjs": ">=1.0.3",
|
110
|
-
"ztxkui": ">=0.4.1"
|
111
|
-
}
|
112
|
-
}
|
1
|
+
{
|
2
|
+
"name": "ztxkutils",
|
3
|
+
"version": "2.10.66-31",
|
4
|
+
"description": "",
|
5
|
+
"main": "./dist/index.js",
|
6
|
+
"module": "./dist/index.js",
|
7
|
+
"types": "./dist/index.d.js",
|
8
|
+
"scripts": {
|
9
|
+
"build": "rollup -c",
|
10
|
+
"prepublish": "yarn build"
|
11
|
+
},
|
12
|
+
"files": [
|
13
|
+
"dist",
|
14
|
+
"./zti18n-cli",
|
15
|
+
"./zti18n-core",
|
16
|
+
"./locales"
|
17
|
+
],
|
18
|
+
"keywords": [],
|
19
|
+
"author": "ZTXK",
|
20
|
+
"license": "MIT",
|
21
|
+
"bin": {
|
22
|
+
"zti18n": "./zti18n-cli/bin/index.js"
|
23
|
+
},
|
24
|
+
"devDependencies": {
|
25
|
+
"@rollup/plugin-commonjs": "^19.0.0",
|
26
|
+
"@rollup/plugin-json": "^4.1.0",
|
27
|
+
"@rollup/plugin-node-resolve": "^13.0.0",
|
28
|
+
"@types/crypto-js": "^4.0.1",
|
29
|
+
"@types/react": "^17.0.0",
|
30
|
+
"@types/react-dom": "^17.0.0",
|
31
|
+
"@typescript-eslint/eslint-plugin": "^4.19.0",
|
32
|
+
"@typescript-eslint/parser": "^4.19.0",
|
33
|
+
"axios": "^0.21.1",
|
34
|
+
"dayjs": "^1.10.4",
|
35
|
+
"eslint": "^7.22.0",
|
36
|
+
"eslint-config-prettier": "^8.1.0",
|
37
|
+
"eslint-plugin-prettier": "^3.3.1",
|
38
|
+
"eslint-webpack-plugin": "^2.5.4",
|
39
|
+
"html2canvas": "^1.4.1",
|
40
|
+
"jspdf": "^2.5.1",
|
41
|
+
"lodash": "^4.17.21",
|
42
|
+
"number-precision": "^1.5.0",
|
43
|
+
"prettier": "^2.2.1",
|
44
|
+
"pubsub-js": "^1.9.3",
|
45
|
+
"react": "^17.0.2",
|
46
|
+
"react-dom": "^17.0.1",
|
47
|
+
"react-router-dom": "5.2",
|
48
|
+
"rollup": "^2.47.0",
|
49
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
50
|
+
"ts-loader": "^8.0.18",
|
51
|
+
"tslib": "^2.2.0",
|
52
|
+
"typescript": "^4.2.4",
|
53
|
+
"ztxkui": "^0.4.1"
|
54
|
+
},
|
55
|
+
"dependencies": {
|
56
|
+
"@babel/core": "^7.18.10",
|
57
|
+
"@babel/generator": "^7.18.0",
|
58
|
+
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
59
|
+
"@babel/plugin-syntax-async-generators": "^7.8.4",
|
60
|
+
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
61
|
+
"@babel/plugin-syntax-decorators": "^7.18.6",
|
62
|
+
"@babel/plugin-syntax-do-expressions": "^7.18.6",
|
63
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
64
|
+
"@babel/plugin-syntax-flow": "^7.18.6",
|
65
|
+
"@babel/plugin-syntax-function-bind": "^7.18.6",
|
66
|
+
"@babel/plugin-syntax-function-sent": "^7.18.6",
|
67
|
+
"@babel/plugin-syntax-jsx": "^7.18.6",
|
68
|
+
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
69
|
+
"@babel/preset-typescript": "^7.18.6",
|
70
|
+
"@babel/traverse": "^7.18.10",
|
71
|
+
"@babel/types": "^7.18.10",
|
72
|
+
"@prettier/plugin-pug": "^1.8.1",
|
73
|
+
"@typescript-eslint/typescript-estree": "^3.8.0",
|
74
|
+
"babel-template": "^6.26.0",
|
75
|
+
"chalk": "^3.0.0",
|
76
|
+
"commander": "^2.18.0",
|
77
|
+
"crypto-js": "^4.1.1",
|
78
|
+
"decimal.js-light": "^2.5.1",
|
79
|
+
"dexie": "^3.2.3",
|
80
|
+
"di18n-core": "^0.1.29",
|
81
|
+
"glob": "^7.1.6",
|
82
|
+
"i18next": "^23.16.4",
|
83
|
+
"inquirer": "^6.2.2",
|
84
|
+
"js-base64": "^3.6.0",
|
85
|
+
"jwt-decode": "^3.1.2",
|
86
|
+
"mustache": "^4.0.1",
|
87
|
+
"parse5": "^5.1.1",
|
88
|
+
"pug-lexer": "^4.1.0",
|
89
|
+
"pug-parser": "^5.0.1",
|
90
|
+
"pug-source-gen": "0.0.2",
|
91
|
+
"screenfull": "^5.1.0",
|
92
|
+
"sockjs-client": "^1.5.1",
|
93
|
+
"stompjs": "^2.3.3",
|
94
|
+
"vue-template-compiler": "^2.7.16",
|
95
|
+
"zt-sockjs-client": "^0.0.2",
|
96
|
+
"zt-stompjs": "^1.1.2"
|
97
|
+
},
|
98
|
+
"peerDependencies": {
|
99
|
+
"axios": ">=0.21.1",
|
100
|
+
"dayjs": ">=1.10.4",
|
101
|
+
"html2canvas": ">=1.4.1",
|
102
|
+
"jspdf": ">=2.5.1",
|
103
|
+
"lodash": ">=4.17.21",
|
104
|
+
"number-precision": ">=1.5.0",
|
105
|
+
"react": ">=17.0.1",
|
106
|
+
"react-dom": ">=17.0.1",
|
107
|
+
"react-router-dom": ">=5.2.0",
|
108
|
+
"zt-sockjs-client": ">=0.0.1",
|
109
|
+
"zt-stompjs": ">=1.0.3",
|
110
|
+
"ztxkui": ">=0.4.1"
|
111
|
+
}
|
112
|
+
}
|
package/zti18n-cli/bin/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
#!/usr/bin/env node
|
2
|
-
|
3
|
-
require('../');
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
require('../');
|
package/zti18n-cli/index.js
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
const program = require('./src');
|
2
|
-
const initFileConf = require('./src/command/initFileConf');
|
3
|
-
|
4
|
-
program
|
5
|
-
.command('init')
|
6
|
-
.alias('i')
|
7
|
-
.description('init locales conf')
|
8
|
-
.option('--vue', 'init for vue project')
|
9
|
-
.action(function (options) {
|
10
|
-
initFileConf(options.vue);
|
11
|
-
})
|
12
|
-
.on('--help', function () {
|
13
|
-
console.log(' Examples:');
|
14
|
-
console.log();
|
15
|
-
console.log(' $ zti18n init -c ./config/prod.config.js');
|
16
|
-
console.log();
|
17
|
-
});
|
18
|
-
|
19
|
-
program.command('*').action(function (cmd) {
|
20
|
-
console.log('unknown command "%s"', cmd);
|
21
|
-
});
|
22
|
-
|
23
|
-
program.parse(process.argv);
|
1
|
+
const program = require('./src');
|
2
|
+
const initFileConf = require('./src/command/initFileConf');
|
3
|
+
|
4
|
+
program
|
5
|
+
.command('init')
|
6
|
+
.alias('i')
|
7
|
+
.description('init locales conf')
|
8
|
+
.option('--vue', 'init for vue project')
|
9
|
+
.action(function (options) {
|
10
|
+
initFileConf(options.vue);
|
11
|
+
})
|
12
|
+
.on('--help', function () {
|
13
|
+
console.log(' Examples:');
|
14
|
+
console.log();
|
15
|
+
console.log(' $ zti18n init -c ./config/prod.config.js');
|
16
|
+
console.log();
|
17
|
+
});
|
18
|
+
|
19
|
+
program.command('*').action(function (cmd) {
|
20
|
+
console.log('unknown command "%s"', cmd);
|
21
|
+
});
|
22
|
+
|
23
|
+
program.parse(process.argv);
|