cc-core-cli 1.0.133 → 1.0.135

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 (72) hide show
  1. package/bin/index.js +4 -4
  2. package/package.json +1 -1
  3. package/template/admin_v3/src/pages/api/database/[type]/index.ts +23 -0
  4. package/template/admin_v3/src/pages/api/layout_chart_widget/[name]/index.ts +18 -0
  5. package/template/admin_v3/src/pages/api/layout_chart_widget/compare_matrix.ts +17 -0
  6. package/template/admin_v3/src/pages/api/redis/[type]/[connect]/index.ts +20 -0
  7. package/template/admin_v3/src/pages/api/redis/custom.ts +10 -0
  8. package/template/admin_v3/src/pages/api/setting/module/[code].ts +34 -0
  9. package/template/admin_v3/src/pages/api/template/[type].ts +21 -0
  10. package/template/admin_v3/src/pages/api/template/bulk_print/[id].ts +15 -0
  11. package/template/admin_v3/src/pages/api/template/print/[id]/[doc_ref].ts +11 -0
  12. package/template/core_v3/Dockerfile +60 -0
  13. package/template/core_v3/_env +12 -0
  14. package/template/core_v3/_gitignore +52 -0
  15. package/template/core_v3/_npmrc +1 -0
  16. package/template/core_v3/buildspec.yml +29 -0
  17. package/template/core_v3/docker-compose.yml +11 -0
  18. package/template/core_v3/jest.config.js +43 -0
  19. package/template/core_v3/newrelic.sh +15 -0
  20. package/template/core_v3/package.json +54 -0
  21. package/template/core_v3/post-install.js +34 -0
  22. package/template/core_v3/sonar-project.properties +27 -0
  23. package/template/core_v3/src/app.controller.ts +39 -0
  24. package/template/core_v3/src/app.module.ts +174 -0
  25. package/template/core_v3/src/app.service.ts +21 -0
  26. package/template/core_v3/src/app_cluster.service.ts +61 -0
  27. package/template/core_v3/src/core/core.controller.ts +444 -0
  28. package/template/core_v3/src/core/core.module.ts +90 -0
  29. package/template/core_v3/src/core/core.service.ts +737 -0
  30. package/template/core_v3/src/core/setting/_settings/about.layout.json +105 -0
  31. package/template/core_v3/src/core/setting/_settings/cache.layout.json +309 -0
  32. package/template/core_v3/src/core/setting/_settings/global_login.json +299 -0
  33. package/template/core_v3/src/core/setting/_settings/header_footer.json +83 -0
  34. package/template/core_v3/src/core/setting/_settings/import_export.layout.json +69 -0
  35. package/template/core_v3/src/core/setting/_settings/list_detail.json +685 -0
  36. package/template/core_v3/src/core/setting/_settings/logs.layout.json +39 -0
  37. package/template/core_v3/src/core/setting/_settings/queue.layout.json +63 -0
  38. package/template/core_v3/src/core/setting/_settings/schedule.layout.json +132 -0
  39. package/template/core_v3/src/core/setting/_settings/security.layout.json +1110 -0
  40. package/template/core_v3/src/core/setting/_settings/storage.layout.json +158 -0
  41. package/template/core_v3/src/core/setting/_settings/swagger.layout.json +128 -0
  42. package/template/core_v3/src/core/setting/_settings/toast.json +344 -0
  43. package/template/core_v3/src/main.ts +308 -0
  44. package/template/core_v3/src/modules/modules.ts +16 -0
  45. package/template/core_v3/src/private.controller.ts +18 -0
  46. package/template/core_v3/storage/documents/index.html +14 -0
  47. package/template/core_v3/storage/public/system/menu/icons/company.svg +1 -0
  48. package/template/core_v3/storage/public/system/menu/icons/deploy.svg +2 -0
  49. package/template/core_v3/storage/public/system/menu/icons/entities.svg +55 -0
  50. package/template/core_v3/storage/public/system/menu/icons/files.svg +1 -0
  51. package/template/core_v3/storage/public/system/menu/icons/gateway.svg +1 -0
  52. package/template/core_v3/storage/public/system/menu/icons/import-export.svg +41 -0
  53. package/template/core_v3/storage/public/system/menu/icons/integration.svg +1 -0
  54. package/template/core_v3/storage/public/system/menu/icons/master_data.svg +53 -0
  55. package/template/core_v3/storage/public/system/menu/icons/modules.svg +79 -0
  56. package/template/core_v3/storage/public/system/menu/icons/monitoring.svg +114 -0
  57. package/template/core_v3/storage/public/system/menu/icons/pipeline.svg +1 -0
  58. package/template/core_v3/storage/public/system/menu/icons/provider.svg +1 -0
  59. package/template/core_v3/storage/public/system/menu/icons/report.svg +69 -0
  60. package/template/core_v3/storage/public/system/menu/icons/schedule.svg +1 -0
  61. package/template/core_v3/storage/public/system/menu/icons/security.svg +1 -0
  62. package/template/core_v3/storage/public/system/menu/icons/storage.svg +1 -0
  63. package/template/core_v3/storage/public/system/menu/icons/template.svg +44 -0
  64. package/template/core_v3/storage/public/system/menu/icons/theme-layout.svg +1 -0
  65. package/template/core_v3/test/__mocks__/cc-core-lib.d.ts +161 -0
  66. package/template/core_v3/test/__mocks__/cc-core-lib.js +311 -0
  67. package/template/core_v3/test/__mocks__/pdf-img-convert.js +5 -0
  68. package/template/core_v3/test/jest.setup.ts +25 -0
  69. package/template/core_v3/tsconfig.build.json +4 -0
  70. package/template/core_v3/tsconfig.json +22 -0
  71. package/template/core_v3/tsconfig.test.json +17 -0
  72. package/template/core_v3/version.json +5 -0
@@ -0,0 +1,299 @@
1
+ {
2
+ "detail": {
3
+ "title": {},
4
+ "blocks": [
5
+ {
6
+ "key": "c80f903d6fdaafbd0f65",
7
+ "type": "column",
8
+ "layout": {
9
+ "num_of_col": 2,
10
+ "fields": [
11
+ [
12
+ {
13
+ "field": "image",
14
+ "type": "standard_component",
15
+ "unique_key": "standard_component_image_0496df53fa2ca5154fe0",
16
+ "key": "global.default_profile",
17
+ "label": "Default Profile",
18
+ "required": false,
19
+ "link_type": "key",
20
+ "trigger": [],
21
+ "allow_extensions": [
22
+ "png",
23
+ "jpg",
24
+ "jpeg",
25
+ "svg"
26
+ ],
27
+ "path_file": "system/global_setting/profile",
28
+ "max_size_checked": true,
29
+ "multiple": false,
30
+ "external_url": false,
31
+ "is_public": true
32
+ },
33
+ {
34
+ "field": "entity_layout",
35
+ "type": "standard_component",
36
+ "unique_key": "standard_component_entity_layout_697ce53c3836353d0582",
37
+ "key": "global.my_profile_form",
38
+ "label": "My Profile Form",
39
+ "required": true,
40
+ "link_type": "key",
41
+ "entity": "other_entity",
42
+ "relate_ref": "user",
43
+ "trigger": []
44
+ }
45
+ ],
46
+ [
47
+ {},
48
+ {
49
+ "field": "input",
50
+ "type": "standard_component",
51
+ "unique_key": "standard_component_input_bc64401b16c5e6846dd4",
52
+ "key": "global.my_profile_format",
53
+ "label": "My Profile Format",
54
+ "link_type": "key",
55
+ "entity": "other_entity",
56
+ "input_type": "single_line",
57
+ "relate_ref": "user",
58
+ "trigger": []
59
+ }
60
+ ]
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "key": "6d7ed53df747852a5189",
66
+ "type": "column",
67
+ "layout": {
68
+ "num_of_col": 2,
69
+ "fields": [
70
+ [
71
+ {
72
+ "field": "radio",
73
+ "type": "standard_component",
74
+ "unique_key": "standard_component_radio_242dbf739e9d854b3744",
75
+ "key": "login.position",
76
+ "label": "Position",
77
+ "required": true,
78
+ "link_type": "key",
79
+ "options": [
80
+ {
81
+ "label": "Left",
82
+ "value": "left"
83
+ },
84
+ {
85
+ "label": "Center",
86
+ "value": "center"
87
+ },
88
+ {
89
+ "label": "Right",
90
+ "value": "right"
91
+ }
92
+ ],
93
+ "default_value": "center",
94
+ "option_type": "button",
95
+ "trigger": []
96
+ },
97
+ {
98
+ "field": "color_picker",
99
+ "type": "standard_component",
100
+ "unique_key": "standard_component_color_picker_e5c3b59576e0d6debd6f",
101
+ "key": "login.background_color",
102
+ "label": "Background Color",
103
+ "required": false,
104
+ "link_type": "key",
105
+ "trigger": [],
106
+ "allow_alpha": true
107
+ }
108
+ ],
109
+ [
110
+ {
111
+ "field": "radio",
112
+ "type": "standard_component",
113
+ "unique_key": "standard_component_radio_9a3fbd0c1e4a2b3c9d01",
114
+ "key": "login.layout_type",
115
+ "label": "Login Layout",
116
+ "link_type": "key",
117
+ "options": [
118
+ {
119
+ "label": "Box",
120
+ "value": "box"
121
+ },
122
+ {
123
+ "label": "Full",
124
+ "value": "full"
125
+ }
126
+ ],
127
+ "default_value": "box",
128
+ "option_type": "button",
129
+ "trigger": []
130
+ },
131
+ {
132
+ "field": "color_picker",
133
+ "type": "standard_component",
134
+ "unique_key": "standard_component_color_picker_e111455f23c61c6cdfbf",
135
+ "key": "login.logo_background_color",
136
+ "label": "Logo Background Color",
137
+ "required": false,
138
+ "link_type": "key",
139
+ "trigger": [],
140
+ "allow_alpha": true
141
+ }
142
+ ]
143
+ ]
144
+ }
145
+ },
146
+ {
147
+ "key": "fec71ee1a473be569596",
148
+ "type": "column",
149
+ "layout": {
150
+ "num_of_col": 2,
151
+ "fields": [
152
+ [
153
+ {
154
+ "field": "image",
155
+ "type": "standard_component",
156
+ "unique_key": "standard_component_image_0496df53fa2ca5154fe0",
157
+ "key": "login.logo",
158
+ "label": "Logo",
159
+ "required": false,
160
+ "link_type": "key",
161
+ "trigger": [],
162
+ "allow_extensions": [
163
+ "png",
164
+ "jpg",
165
+ "jpeg",
166
+ "svg"
167
+ ],
168
+ "path_file": "system/general_setting/logo",
169
+ "max_size_checked": true,
170
+ "multiple": false,
171
+ "external_url": false,
172
+ "is_public": true,
173
+ "max_file_size": 10
174
+ }
175
+ ],
176
+ [
177
+ {
178
+ "field": "image",
179
+ "type": "standard_component",
180
+ "unique_key": "standard_component_image_0496df53fa2ca5154fe0",
181
+ "key": "login.background_image",
182
+ "label": "Background Image",
183
+ "required": false,
184
+ "link_type": "key",
185
+ "trigger": [],
186
+ "allow_extensions": [
187
+ "png",
188
+ "jpg",
189
+ "jpeg",
190
+ "svg"
191
+ ],
192
+ "path_file": "system/general_setting/bg",
193
+ "max_size_checked": true,
194
+ "multiple": false,
195
+ "external_url": false,
196
+ "is_public": true,
197
+ "max_file_size": 10
198
+ }
199
+ ]
200
+ ]
201
+ }
202
+ },
203
+ {
204
+ "key": "6f86da399efa24442ec0",
205
+ "type": "column",
206
+ "layout": {
207
+ "num_of_col": 1,
208
+ "fields": [
209
+ [
210
+ {
211
+ "field": "input",
212
+ "type": "standard_component",
213
+ "unique_key": "standard_component_input_8affb780c4cbfe1ddb79",
214
+ "key": "login.background_content",
215
+ "label": "Background Content",
216
+ "link_type": "key",
217
+ "input_type": "wysiwyg",
218
+ "trigger": []
219
+ }
220
+ ]
221
+ ]
222
+ }
223
+ },
224
+ {
225
+ "key": "00d3af0bb6e34319a571",
226
+ "type": "column",
227
+ "layout": {
228
+ "num_of_col": 6,
229
+ "fields": [
230
+ [
231
+ {
232
+ "field": "color_picker",
233
+ "type": "standard_component",
234
+ "unique_key": "standard_component_color_picker_5bf803f263401dfd87b9",
235
+ "key": "register.background_color",
236
+ "label": "Register Background Color",
237
+ "required": false,
238
+ "link_type": "key",
239
+ "trigger": [],
240
+ "allow_alpha": true
241
+ }
242
+ ],
243
+ [
244
+ {
245
+ "field": "color_picker",
246
+ "type": "standard_component",
247
+ "unique_key": "standard_component_color_picker_8aedea2cfc59d9c0696f",
248
+ "key": "register.form_header_color",
249
+ "label": "Register Form Header Color",
250
+ "required": false,
251
+ "link_type": "key",
252
+ "trigger": [],
253
+ "allow_alpha": true
254
+ }
255
+ ],
256
+ [
257
+ {
258
+ "field": "color_picker",
259
+ "type": "standard_component",
260
+ "unique_key": "standard_component_color_picker_8aedea2cerrt679c0696f",
261
+ "key": "register.form_body_color",
262
+ "label": "Register Form Body Color",
263
+ "required": false,
264
+ "link_type": "key",
265
+ "trigger": [],
266
+ "allow_alpha": true
267
+ }
268
+ ],
269
+ [],
270
+ [],
271
+ []
272
+ ]
273
+ }
274
+ }
275
+ ],
276
+ "redirect_mode": "refresh"
277
+ },
278
+ "name": "Global & Login",
279
+ "code": "global_login",
280
+ "type": [
281
+ "form"
282
+ ],
283
+ "allow_actions": [
284
+ {
285
+ "action": "create",
286
+ "role_restrictions": []
287
+ },
288
+ {
289
+ "action": "update",
290
+ "role_restrictions": []
291
+ }
292
+ ],
293
+ "deploy_package_settings": [
294
+ "general"
295
+ ],
296
+ "restriction": [],
297
+ "hide_activity_log": true,
298
+ "show_refresh": false
299
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "detail": {
3
+ "title": {},
4
+ "blocks": [
5
+ {
6
+ "key": "574a3e3eabd1e444bb98",
7
+ "type": "column",
8
+ "layout": {
9
+ "num_of_col": 6,
10
+ "fields": [
11
+ [
12
+ {
13
+ "field": "color_picker",
14
+ "type": "standard_component",
15
+ "unique_key": "standard_component_color_picker_fd86fc7f603a1e44959f",
16
+ "key": "header.breadcrumb_hover_color",
17
+ "label": "Breadcrumb Hover Color",
18
+ "link_type": "key",
19
+ "trigger": [],
20
+ "allow_alpha": false
21
+ }
22
+ ],
23
+ [
24
+ {
25
+ "field": "color_picker",
26
+ "type": "standard_component",
27
+ "unique_key": "standard_component_color_picker_63cd4264860092f38299",
28
+ "key": "header.background_color",
29
+ "label": "Background Color",
30
+ "link_type": "key",
31
+ "trigger": [],
32
+ "allow_alpha": true
33
+ }
34
+ ]
35
+ ]
36
+ }
37
+ },
38
+ {
39
+ "key": "54166ce7b2cff59b2692",
40
+ "type": "column",
41
+ "layout": {
42
+ "num_of_col": 1,
43
+ "fields": [
44
+ [
45
+ {
46
+ "field": "input",
47
+ "type": "standard_component",
48
+ "unique_key": "standard_component_input_c77b2a7686179d6bf1eb",
49
+ "key": "footer.content",
50
+ "label": "Content",
51
+ "link_type": "key",
52
+ "input_type": "wysiwyg",
53
+ "trigger": []
54
+ }
55
+ ]
56
+ ]
57
+ }
58
+ }
59
+ ],
60
+ "redirect_mode": "refresh"
61
+ },
62
+ "name": "Header & Footer",
63
+ "code": "header_footer",
64
+ "type": [
65
+ "form"
66
+ ],
67
+ "allow_actions": [
68
+ {
69
+ "action": "create",
70
+ "role_restrictions": []
71
+ },
72
+ {
73
+ "action": "update",
74
+ "role_restrictions": []
75
+ }
76
+ ],
77
+ "deploy_package_settings": [
78
+ "general"
79
+ ],
80
+ "restriction": [],
81
+ "hide_activity_log": true,
82
+ "show_refresh": false
83
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "detail": {
3
+ "title": {},
4
+ "blocks": [
5
+ {
6
+ "key": "80bbead236c45bb2a8d5",
7
+ "type": "column",
8
+ "layout": {
9
+ "num_of_col": 2,
10
+ "fields": [
11
+ [
12
+ {
13
+ "field": "input_number",
14
+ "type": "standard_component",
15
+ "unique_key": "standard_component_input_number_e9fecf9bf32b7a009476",
16
+ "key": "import_export_setting.export_maximum_rows",
17
+ "label": "Export Maximum Rows",
18
+ "default_value": 10000,
19
+ "link_type": "key",
20
+ "min_value": 1,
21
+ "trigger": [],
22
+ "decimal_place": 0,
23
+ "required": true
24
+ }
25
+ ],
26
+ [
27
+ {
28
+ "field": "input",
29
+ "type": "standard_component",
30
+ "unique_key": "standard_component_input_03fbfc198782fc2db785",
31
+ "key": "import_export_setting.show_log_maximum_day",
32
+ "label": "Maximum days show Import/Export Log",
33
+ "description": "example : 1m, 1h, 1d",
34
+ "link_type": "key",
35
+ "entity": "not_use",
36
+ "input_type": "single_line",
37
+ "reg_exp_pattern": "^[0-9]*[hmd]",
38
+ "trigger": [],
39
+ "use_function": false
40
+ }
41
+ ]
42
+ ]
43
+ }
44
+ }
45
+ ],
46
+ "redirect_mode": "not_redirect"
47
+ },
48
+ "name": "Import Export",
49
+ "code": "import_export",
50
+ "type": [
51
+ "form"
52
+ ],
53
+ "allow_actions": [
54
+ {
55
+ "action": "create",
56
+ "role_restrictions": []
57
+ },
58
+ {
59
+ "action": "update",
60
+ "role_restrictions": []
61
+ }
62
+ ],
63
+ "deploy_package_settings": [
64
+ "general"
65
+ ],
66
+ "restriction": [],
67
+ "hide_activity_log": true,
68
+ "show_refresh": false
69
+ }