cloudcc-cli 1.6.4 → 1.6.6
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 +1176 -1161
- package/bin/cc.js +49 -49
- package/bin/plugin.js +6 -6
- package/bin/project.js +6 -6
- package/core/core/CCObject.java +48 -0
- package/core/core/CCService.java +806 -0
- package/core/core/CCTrigger.java +23 -0
- package/core/core/CCTriggerHandler.java +15 -0
- package/core/core/DevLogger.java +39 -0
- package/core/core/OperatationEnum.java +5 -0
- package/core/core/PeakInterf.java +6 -0
- package/core/core/PeakSvc.java +8 -0
- package/core/core/ServiceResult.java +35 -0
- package/core/core/TriggerInvoker.java +83 -0
- package/core/core/TriggerMethod.java +9 -0
- package/core/core/TriggerTimeEnum.java +5 -0
- package/core/core/UserInfo.java +45 -0
- package/core.zip +0 -0
- package/package.json +34 -34
- package/src/classes/create.js +40 -43
- package/src/classes/index.js +8 -8
- package/src/classes/publish.js +43 -47
- package/src/config/get.js +20 -22
- package/src/config/index.js +8 -8
- package/src/config/use.js +14 -16
- package/src/object/get.js +14 -16
- package/src/object/index.js +7 -7
- package/src/plugin/create.js +70 -80
- package/src/plugin/create1.js +58 -66
- package/src/plugin/index.js +8 -8
- package/src/plugin/publish.js +265 -298
- package/src/plugin/publish1.js +256 -286
- package/src/project/create.js +87 -89
- package/src/project/create1.js +109 -111
- package/src/project/index.js +7 -7
- package/src/recordType/get.js +13 -16
- package/src/recordType/index.js +7 -7
- package/src/script/create.js +29 -32
- package/src/script/index.js +8 -8
- package/src/script/publish.js +62 -69
- package/src/timer/create.js +26 -29
- package/src/timer/index.js +8 -8
- package/src/timer/publish.js +43 -47
- package/src/token/get.js +11 -13
- package/src/token/index.js +7 -7
- package/src/triggers/create.js +27 -35
- package/src/triggers/index.js +8 -8
- package/src/triggers/publish.js +48 -51
- package/template/Appvue +29 -29
- package/template/babelconfigjs +5 -5
- package/template/demojava +14 -14
- package/template/gitignore +11 -11
- package/template/index.js +57 -57
- package/template/indexhtml +21 -21
- package/template/indexvue +34 -34
- package/template/javaconfigjson +2 -2
- package/template/mainjs +13 -13
- package/template/package-lockjson +12115 -12115
- package/template/packagejson +42 -42
- package/template/vueconfigjs +26 -26
- package/tool/branch/index.js +25 -0
- package/tool/checkLange/checkLang.js +68 -0
- package/tool/checkLange/clearLang.js +85 -0
- package/tool/checkLange/result.txt +0 -0
- package/utils/checkVersion.js +94 -105
- package/utils/http.js +122 -122
- package/utils/utils.js +57 -59
package/bin/cc.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const chalk = require("chalk")
|
|
3
|
-
|
|
4
|
-
let argvs = process.argv.splice(2);
|
|
5
|
-
|
|
6
|
-
let action = argvs[0]
|
|
7
|
-
if (!action) {
|
|
8
|
-
console.log()
|
|
9
|
-
console.log(chalk.yellow("
|
|
10
|
-
console.log()
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
let type = argvs[1]
|
|
16
|
-
if (!type) {
|
|
17
|
-
console.log()
|
|
18
|
-
console.log(chalk.yellow("
|
|
19
|
-
console.log()
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const cc = {}
|
|
24
|
-
|
|
25
|
-
cc.project = require("../src/project/index")
|
|
26
|
-
|
|
27
|
-
cc.plugin = require("../src/plugin/index")
|
|
28
|
-
|
|
29
|
-
cc.classes = require("../src/classes/index")
|
|
30
|
-
|
|
31
|
-
cc.timer = require("../src/timer/index")
|
|
32
|
-
|
|
33
|
-
cc.triggers = require("../src/triggers/index")
|
|
34
|
-
|
|
35
|
-
cc.script = require("../src/script/index")
|
|
36
|
-
|
|
37
|
-
cc.token = require("../src/token/index")
|
|
38
|
-
|
|
39
|
-
cc.object = require("../src/object/index")
|
|
40
|
-
|
|
41
|
-
cc.recordType = require("../src/recordType/index")
|
|
42
|
-
|
|
43
|
-
cc.config = require("../src/config/index")
|
|
44
|
-
try {
|
|
45
|
-
cc[argvs[1]](argvs[0], argvs);
|
|
46
|
-
} catch (e) {
|
|
47
|
-
console.log()
|
|
48
|
-
console.log(chalk.yellow("
|
|
49
|
-
console.log()
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const chalk = require("chalk")
|
|
3
|
+
|
|
4
|
+
let argvs = process.argv.splice(2);
|
|
5
|
+
|
|
6
|
+
let action = argvs[0]
|
|
7
|
+
if (!action) {
|
|
8
|
+
console.log()
|
|
9
|
+
console.log(chalk.yellow("Please see the help documentation"));
|
|
10
|
+
console.log()
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
let type = argvs[1]
|
|
16
|
+
if (!type) {
|
|
17
|
+
console.log()
|
|
18
|
+
console.log(chalk.yellow("Please see the help documentation"));
|
|
19
|
+
console.log()
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const cc = {}
|
|
24
|
+
|
|
25
|
+
cc.project = require("../src/project/index")
|
|
26
|
+
|
|
27
|
+
cc.plugin = require("../src/plugin/index")
|
|
28
|
+
|
|
29
|
+
cc.classes = require("../src/classes/index")
|
|
30
|
+
|
|
31
|
+
cc.timer = require("../src/timer/index")
|
|
32
|
+
|
|
33
|
+
cc.triggers = require("../src/triggers/index")
|
|
34
|
+
|
|
35
|
+
cc.script = require("../src/script/index")
|
|
36
|
+
|
|
37
|
+
cc.token = require("../src/token/index")
|
|
38
|
+
|
|
39
|
+
cc.object = require("../src/object/index")
|
|
40
|
+
|
|
41
|
+
cc.recordType = require("../src/recordType/index")
|
|
42
|
+
|
|
43
|
+
cc.config = require("../src/config/index")
|
|
44
|
+
try {
|
|
45
|
+
cc[argvs[1]](argvs[0], argvs);
|
|
46
|
+
} catch (e) {
|
|
47
|
+
console.log()
|
|
48
|
+
console.log(chalk.yellow("Please see the help documentation"), e);
|
|
49
|
+
console.log()
|
|
50
50
|
}
|
package/bin/plugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const Builder = require("../src/plugin/publish.js");
|
|
4
|
-
|
|
5
|
-
const builder = new Builder();
|
|
6
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const Builder = require("../src/plugin/publish.js");
|
|
4
|
+
|
|
5
|
+
const builder = new Builder();
|
|
6
|
+
|
|
7
7
|
builder.init();
|
package/bin/project.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const Create = require("../src/project/create.js");
|
|
4
|
-
|
|
5
|
-
const project = new Create();
|
|
6
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const Create = require("../src/project/create.js");
|
|
4
|
+
|
|
5
|
+
const project = new Create();
|
|
6
|
+
|
|
7
7
|
project.init();
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
package com.cloudcc.core;
|
|
2
|
+
|
|
3
|
+
import java.util.HashMap;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @author T.han
|
|
7
|
+
* @date 2023/8/17 16:18
|
|
8
|
+
* @project CloudccNewPro
|
|
9
|
+
* @Description //TODO
|
|
10
|
+
*/
|
|
11
|
+
public class CCObject extends HashMap<String,Object> {
|
|
12
|
+
public static final String OBJECT_API = "CCObjectAPI";
|
|
13
|
+
public static final String IS_SHARED = "isShared";
|
|
14
|
+
|
|
15
|
+
public CCObject() {
|
|
16
|
+
/* compiled code */
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public CCObject(String ccobj) {
|
|
21
|
+
/* compiled code */
|
|
22
|
+
put("CCObjectAPI", ccobj);
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public CCObject(String ccobj, String isShared) {
|
|
27
|
+
/* compiled code */
|
|
28
|
+
put("CCObjectAPI", ccobj);
|
|
29
|
+
put("isShared", "isShared");
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public void putSumValue(String sumValueKey, String value) {
|
|
33
|
+
/* compiled code */
|
|
34
|
+
put("sum" + sumValueKey, value);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public Object getSumValue(String sumValueKey) {
|
|
38
|
+
/* compiled code */
|
|
39
|
+
return get("sum" + sumValueKey);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public String getObjectApiName() {
|
|
43
|
+
/* compiled code */
|
|
44
|
+
return (String)get("CCObjectAPI");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
}
|