cc-core-cli 1.0.122 → 1.0.124

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-core-cli",
3
- "version": "1.0.122",
3
+ "version": "1.0.124",
4
4
  "description": "Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import RegisterForm from '../components/Register'
2
+ import { RegisterForm } from '@shopstack/cc-admin-lib'
3
3
 
4
4
  class Register extends React.Component {
5
5
 
@@ -0,0 +1,263 @@
1
+ {
2
+ "name": "Popup Layout",
3
+ "code": "popup",
4
+ "detail": {
5
+ "title": {},
6
+ "blocks": [
7
+ {
8
+ "key": "a50ccafb6dd9903985a2",
9
+ "type": "column",
10
+ "layout": {
11
+ "num_of_col": 1,
12
+ "fields": [
13
+ [
14
+ {
15
+ "field": "label",
16
+ "type": "standard_component",
17
+ "unique_key": "standard_component_label_5d8f563b7c008d69e7c2",
18
+ "label": "Delete Popup",
19
+ "entity": "mock_popup_2_1",
20
+ "internal_actions": [],
21
+ "format": "<div><br></div>",
22
+ "show_empty": false,
23
+ "_translates": {
24
+ "en-US": {
25
+ "label": "Delete Popup",
26
+ "placeholder": "",
27
+ "description": "",
28
+ "format": "<div><br></div>"
29
+ },
30
+ "th-TH": {
31
+ "label": "",
32
+ "placeholder": "",
33
+ "description": ""
34
+ }
35
+ }
36
+ }
37
+ ]
38
+ ]
39
+ }
40
+ },
41
+ {
42
+ "key": "f5b0c1dcf05ebc994310",
43
+ "type": "column",
44
+ "layout": {
45
+ "num_of_col": 1,
46
+ "fields": [
47
+ [
48
+ {
49
+ "field": "select",
50
+ "type": "standard_component",
51
+ "unique_key": "standard_component_select_bd1c6117570a60cb44de",
52
+ "key": "delete_popup.icon_type",
53
+ "label": "Icon type",
54
+ "default_value": "System Icon",
55
+ "link_type": "key",
56
+ "entity": "custom",
57
+ "options": [
58
+ "System Icon",
59
+ "Custom Icon"
60
+ ],
61
+ "internal_actions": [],
62
+ "mode": "single",
63
+ "trigger": [
64
+ {
65
+ "field": "standard_component_input_icon_4f4e83fca5a869b6ca95",
66
+ "method": "show",
67
+ "value": "['System Icon','[\"System Icon\"]'].includes('${ delete_popup.icon_type }')"
68
+ },
69
+ {
70
+ "field": "standard_component_file_36c5f86f439c31986310",
71
+ "method": "show",
72
+ "value": "['Custom Icon','[\"Custom Icon\"]'].includes('${ delete_popup.icon_type }')"
73
+ }
74
+ ],
75
+ "_translates": {
76
+ "en-US": {
77
+ "label": "Icon type",
78
+ "placeholder": "",
79
+ "description": ""
80
+ },
81
+ "th-TH": {
82
+ "label": "",
83
+ "placeholder": "",
84
+ "description": ""
85
+ }
86
+ }
87
+ }
88
+ ]
89
+ ]
90
+ }
91
+ },
92
+ {
93
+ "key": "3d158de5a3d17e36c31a",
94
+ "type": "column",
95
+ "layout": {
96
+ "num_of_col": 1,
97
+ "fields": [
98
+ [
99
+ {
100
+ "field": "input_icon",
101
+ "type": "standard_component",
102
+ "unique_key": "standard_component_input_icon_4f4e83fca5a869b6ca95",
103
+ "key": "delete_popup.icon_system",
104
+ "label": "System Icon",
105
+ "link_type": "key",
106
+ "internal_actions": [],
107
+ "_translates": {
108
+ "en-US": {
109
+ "label": "System Icon",
110
+ "placeholder": "",
111
+ "description": ""
112
+ },
113
+ "th-TH": {
114
+ "label": "",
115
+ "placeholder": "",
116
+ "description": ""
117
+ }
118
+ }
119
+ }
120
+ ]
121
+ ]
122
+ }
123
+ },
124
+ {
125
+ "key": "0f822fef4206d06c39be",
126
+ "type": "column",
127
+ "layout": {
128
+ "num_of_col": 1,
129
+ "fields": [
130
+ [
131
+ {
132
+ "field": "file",
133
+ "type": "standard_component",
134
+ "unique_key": "standard_component_file_36c5f86f439c31986310",
135
+ "key": "delete_popup.icon_custom",
136
+ "label": "Custom Icon",
137
+ "link_type": "key",
138
+ "internal_actions": [],
139
+ "trigger": [],
140
+ "allow_high_light": true,
141
+ "allow_extensions": [
142
+ "svg",
143
+ "png",
144
+ "jpg"
145
+ ],
146
+ "path_file": "system/popup/custom_icon",
147
+ "_translates": {
148
+ "en-US": {
149
+ "label": "Custom Icon",
150
+ "placeholder": "",
151
+ "description": ""
152
+ },
153
+ "th-TH": {
154
+ "label": "",
155
+ "placeholder": "",
156
+ "description": ""
157
+ }
158
+ },
159
+ "is_public": false
160
+ }
161
+ ]
162
+ ]
163
+ }
164
+ },
165
+ {
166
+ "key": "4383a7551e4ba0d6b91d",
167
+ "type": "column",
168
+ "layout": {
169
+ "num_of_col": 1,
170
+ "fields": [
171
+ [
172
+ {
173
+ "field": "input",
174
+ "type": "standard_component",
175
+ "unique_key": "standard_component_input_a44809f12d23250b54e1",
176
+ "key": "delete_popup.title",
177
+ "label": "Title",
178
+ "default_value": "Confirm delete",
179
+ "link_type": "key",
180
+ "entity": "not_use",
181
+ "input_type": "single_line",
182
+ "internal_actions": [],
183
+ "trigger": [],
184
+ "use_function": false,
185
+ "_translates": {
186
+ "en-US": {
187
+ "label": "Title",
188
+ "placeholder": "",
189
+ "description": ""
190
+ },
191
+ "th-TH": {
192
+ "label": "",
193
+ "placeholder": "",
194
+ "description": ""
195
+ }
196
+ },
197
+ "mask_checked": false
198
+ }
199
+ ]
200
+ ]
201
+ }
202
+ },
203
+ {
204
+ "key": "d9407c4601940b1d165f",
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_009c61f50cb9a9e64eb6",
214
+ "key": "delete_popup.description",
215
+ "label": "Description",
216
+ "default_value": "Are you sure you want to delete?",
217
+ "link_type": "key",
218
+ "entity": "not_use",
219
+ "input_type": "multi_line",
220
+ "internal_actions": [],
221
+ "trigger": [],
222
+ "use_function": false,
223
+ "_translates": {
224
+ "en-US": {
225
+ "label": "Description",
226
+ "placeholder": "",
227
+ "description": ""
228
+ },
229
+ "th-TH": {
230
+ "label": "",
231
+ "placeholder": "",
232
+ "description": ""
233
+ }
234
+ },
235
+ "mask_checked": false
236
+ }
237
+ ]
238
+ ]
239
+ }
240
+ }
241
+ ],
242
+ "is_popup": false
243
+ },
244
+ "type": [
245
+ "form"
246
+ ],
247
+ "allow_actions": [
248
+ {
249
+ "action": "create",
250
+ "role_restrictions": []
251
+ },
252
+ {
253
+ "action": "update",
254
+ "role_restrictions": []
255
+ }
256
+ ],
257
+ "deploy_package_settings": [
258
+ "general"
259
+ ],
260
+ "restriction": [],
261
+ "hide_activity_log": true,
262
+ "hide_refresh": true
263
+ }