cloudcc-cli 1.6.5 → 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 (46) hide show
  1. package/README.md +8 -0
  2. package/bin/cc.js +15 -15
  3. package/core/core/CCObject.java +48 -0
  4. package/core/core/CCService.java +806 -0
  5. package/core/core/CCTrigger.java +23 -0
  6. package/core/core/CCTriggerHandler.java +15 -0
  7. package/core/core/DevLogger.java +39 -0
  8. package/core/core/OperatationEnum.java +5 -0
  9. package/core/core/PeakInterf.java +6 -0
  10. package/core/core/PeakSvc.java +8 -0
  11. package/core/core/ServiceResult.java +35 -0
  12. package/core/core/TriggerInvoker.java +83 -0
  13. package/core/core/TriggerMethod.java +9 -0
  14. package/core/core/TriggerTimeEnum.java +5 -0
  15. package/core/core/UserInfo.java +45 -0
  16. package/core.zip +0 -0
  17. package/package.json +1 -1
  18. package/src/classes/create.js +5 -8
  19. package/src/classes/publish.js +8 -12
  20. package/src/config/get.js +1 -3
  21. package/src/config/use.js +1 -3
  22. package/src/object/get.js +4 -6
  23. package/src/plugin/create.js +10 -20
  24. package/src/plugin/create1.js +8 -16
  25. package/src/plugin/publish.js +44 -77
  26. package/src/plugin/publish1.js +42 -72
  27. package/src/project/create.js +12 -14
  28. package/src/project/create1.js +15 -17
  29. package/src/recordType/get.js +3 -6
  30. package/src/script/create.js +3 -6
  31. package/src/script/publish.js +10 -17
  32. package/src/timer/create.js +3 -6
  33. package/src/timer/publish.js +8 -12
  34. package/src/token/get.js +1 -3
  35. package/src/triggers/create.js +8 -16
  36. package/src/triggers/index.js +1 -1
  37. package/src/triggers/publish.js +10 -13
  38. package/template/index.js +10 -10
  39. package/template/indexvue +3 -3
  40. package/tool/branch/index.js +25 -0
  41. package/tool/checkLange/checkLang.js +68 -0
  42. package/tool/checkLange/clearLang.js +85 -0
  43. package/tool/checkLange/result.txt +0 -0
  44. package/utils/checkVersion.js +19 -30
  45. package/utils/http.js +5 -5
  46. package/utils/utils.js +19 -21
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
+ # ReleaseV1.6.6
2
+ #### 发布日期:2024-8-6
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 优化
6
+ * 调整setup和apisvc地址访问逻辑。
7
+ * 完善创建触发器流程。
8
+
1
9
  # ReleaseV1.6.5
2
10
  #### 发布日期:2024-5-14
3
11
  #### 发布范围:全量
package/bin/cc.js CHANGED
@@ -2,49 +2,49 @@
2
2
  const chalk = require("chalk")
3
3
 
4
4
  let argvs = process.argv.splice(2);
5
- // 动作
5
+
6
6
  let action = argvs[0]
7
7
  if (!action) {
8
8
  console.log()
9
- console.log(chalk.yellow("请查看帮助文档:https://cloudccone.feishu.cn/wiki/Q2AgwlxAtijmMJkjXXZcYgQVnmw?fromScene=spaceOverview"));
9
+ console.log(chalk.yellow("Please see the help documentation"));
10
10
  console.log()
11
11
  return;
12
12
  }
13
13
 
14
- // 类型
14
+
15
15
  let type = argvs[1]
16
16
  if (!type) {
17
17
  console.log()
18
- console.log(chalk.yellow("请查看帮助文档:https://cloudccone.feishu.cn/wiki/Q2AgwlxAtijmMJkjXXZcYgQVnmw?fromScene=spaceOverview"));
18
+ console.log(chalk.yellow("Please see the help documentation"));
19
19
  console.log()
20
20
  return;
21
21
  }
22
22
 
23
23
  const cc = {}
24
- // 创建模板项目
24
+
25
25
  cc.project = require("../src/project/index")
26
- // 组件的管理
26
+
27
27
  cc.plugin = require("../src/plugin/index")
28
- // 类的管理
28
+
29
29
  cc.classes = require("../src/classes/index")
30
- // 定时器的管理
30
+
31
31
  cc.timer = require("../src/timer/index")
32
- // 触发器的管理
32
+
33
33
  cc.triggers = require("../src/triggers/index")
34
- // 客户端脚本的管理
34
+
35
35
  cc.script = require("../src/script/index")
36
- // token管理
36
+
37
37
  cc.token = require("../src/token/index")
38
- // 对象管理
38
+
39
39
  cc.object = require("../src/object/index")
40
- // 对象记录类型管理
40
+
41
41
  cc.recordType = require("../src/recordType/index")
42
- // 配置管理
42
+
43
43
  cc.config = require("../src/config/index")
44
44
  try {
45
45
  cc[argvs[1]](argvs[0], argvs);
46
46
  } catch (e) {
47
47
  console.log()
48
- console.log(chalk.yellow("请查看帮助文档:https://cloudccone.feishu.cn/wiki/Q2AgwlxAtijmMJkjXXZcYgQVnmw?fromScene=spaceOverview"), e);
48
+ console.log(chalk.yellow("Please see the help documentation"), e);
49
49
  console.log()
50
50
  }
@@ -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
+ }