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.
Files changed (67) hide show
  1. package/README.md +1176 -1161
  2. package/bin/cc.js +49 -49
  3. package/bin/plugin.js +6 -6
  4. package/bin/project.js +6 -6
  5. package/core/core/CCObject.java +48 -0
  6. package/core/core/CCService.java +806 -0
  7. package/core/core/CCTrigger.java +23 -0
  8. package/core/core/CCTriggerHandler.java +15 -0
  9. package/core/core/DevLogger.java +39 -0
  10. package/core/core/OperatationEnum.java +5 -0
  11. package/core/core/PeakInterf.java +6 -0
  12. package/core/core/PeakSvc.java +8 -0
  13. package/core/core/ServiceResult.java +35 -0
  14. package/core/core/TriggerInvoker.java +83 -0
  15. package/core/core/TriggerMethod.java +9 -0
  16. package/core/core/TriggerTimeEnum.java +5 -0
  17. package/core/core/UserInfo.java +45 -0
  18. package/core.zip +0 -0
  19. package/package.json +34 -34
  20. package/src/classes/create.js +40 -43
  21. package/src/classes/index.js +8 -8
  22. package/src/classes/publish.js +43 -47
  23. package/src/config/get.js +20 -22
  24. package/src/config/index.js +8 -8
  25. package/src/config/use.js +14 -16
  26. package/src/object/get.js +14 -16
  27. package/src/object/index.js +7 -7
  28. package/src/plugin/create.js +70 -80
  29. package/src/plugin/create1.js +58 -66
  30. package/src/plugin/index.js +8 -8
  31. package/src/plugin/publish.js +265 -298
  32. package/src/plugin/publish1.js +256 -286
  33. package/src/project/create.js +87 -89
  34. package/src/project/create1.js +109 -111
  35. package/src/project/index.js +7 -7
  36. package/src/recordType/get.js +13 -16
  37. package/src/recordType/index.js +7 -7
  38. package/src/script/create.js +29 -32
  39. package/src/script/index.js +8 -8
  40. package/src/script/publish.js +62 -69
  41. package/src/timer/create.js +26 -29
  42. package/src/timer/index.js +8 -8
  43. package/src/timer/publish.js +43 -47
  44. package/src/token/get.js +11 -13
  45. package/src/token/index.js +7 -7
  46. package/src/triggers/create.js +27 -35
  47. package/src/triggers/index.js +8 -8
  48. package/src/triggers/publish.js +48 -51
  49. package/template/Appvue +29 -29
  50. package/template/babelconfigjs +5 -5
  51. package/template/demojava +14 -14
  52. package/template/gitignore +11 -11
  53. package/template/index.js +57 -57
  54. package/template/indexhtml +21 -21
  55. package/template/indexvue +34 -34
  56. package/template/javaconfigjson +2 -2
  57. package/template/mainjs +13 -13
  58. package/template/package-lockjson +12115 -12115
  59. package/template/packagejson +42 -42
  60. package/template/vueconfigjs +26 -26
  61. package/tool/branch/index.js +25 -0
  62. package/tool/checkLange/checkLang.js +68 -0
  63. package/tool/checkLange/clearLang.js +85 -0
  64. package/tool/checkLange/result.txt +0 -0
  65. package/utils/checkVersion.js +94 -105
  66. package/utils/http.js +122 -122
  67. 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("请查看帮助文档:https://cloudccone.feishu.cn/wiki/Q2AgwlxAtijmMJkjXXZcYgQVnmw?fromScene=spaceOverview"));
10
- console.log()
11
- return;
12
- }
13
-
14
- // 类型
15
- let type = argvs[1]
16
- if (!type) {
17
- console.log()
18
- console.log(chalk.yellow("请查看帮助文档:https://cloudccone.feishu.cn/wiki/Q2AgwlxAtijmMJkjXXZcYgQVnmw?fromScene=spaceOverview"));
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
- // token管理
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("请查看帮助文档:https://cloudccone.feishu.cn/wiki/Q2AgwlxAtijmMJkjXXZcYgQVnmw?fromScene=spaceOverview"), e);
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
+ }