cc-core-cli 1.0.168 → 1.0.170
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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { OidcCallback } from '@shopstack/cc-admin-lib'
|
|
3
|
+
|
|
4
|
+
class OidcCallbackPage extends React.Component {
|
|
5
|
+
static getInitialProps({ query }) {
|
|
6
|
+
return { providerCode: query.provider_code }
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
render() {
|
|
10
|
+
return <OidcCallback providerCode={this.props.providerCode} />
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default OidcCallbackPage
|
|
@@ -27,6 +27,209 @@
|
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
"key": "my_profile_setting_label",
|
|
32
|
+
"type": "column",
|
|
33
|
+
"layout": {
|
|
34
|
+
"num_of_col": 2,
|
|
35
|
+
"fields": [
|
|
36
|
+
[
|
|
37
|
+
{
|
|
38
|
+
"field": "label",
|
|
39
|
+
"type": "standard_component",
|
|
40
|
+
"unique_key": "standard_component_label_my_profile_setting",
|
|
41
|
+
"label": "User",
|
|
42
|
+
"entity": "test_setting",
|
|
43
|
+
"format": "<p><br></p><h3>User</h3>",
|
|
44
|
+
"hide_label": true
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
[]
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"key": "my_profile_setting_collapse",
|
|
53
|
+
"type": "collapse",
|
|
54
|
+
"allow_add": false,
|
|
55
|
+
"data_source": "",
|
|
56
|
+
"body": [
|
|
57
|
+
{
|
|
58
|
+
"title": "My Profile",
|
|
59
|
+
"key": "my_profile_setting_panel",
|
|
60
|
+
"source_key": "my_profile",
|
|
61
|
+
"actions": [],
|
|
62
|
+
"blocks": [
|
|
63
|
+
{
|
|
64
|
+
"key": "my_profile_entity_layout_block",
|
|
65
|
+
"type": "column",
|
|
66
|
+
"layout": {
|
|
67
|
+
"num_of_col": 2,
|
|
68
|
+
"fields": [
|
|
69
|
+
[
|
|
70
|
+
{
|
|
71
|
+
"field": "entity_list",
|
|
72
|
+
"type": "standard_component",
|
|
73
|
+
"unique_key": "standard_component_entity_list_my_profile_entity",
|
|
74
|
+
"key": "entity",
|
|
75
|
+
"label": "My Profile Entity",
|
|
76
|
+
"required": false,
|
|
77
|
+
"link_type": "key",
|
|
78
|
+
"trigger": [
|
|
79
|
+
{
|
|
80
|
+
"field": "standard_component_entity_layout_697ce53c3836353d0582",
|
|
81
|
+
"method": "required",
|
|
82
|
+
"value": "'${ my_profile.entity }' ? true : false"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"field": "standard_component_entity_layout_697ce53c3836353d0582",
|
|
86
|
+
"method": "clear"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"_translates": {
|
|
90
|
+
"en-US": { "label": "My Profile Entity" },
|
|
91
|
+
"th-TH": { "label": "Entity โปรไฟล์" }
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"field": "input",
|
|
96
|
+
"type": "standard_component",
|
|
97
|
+
"unique_key": "standard_component_input_bc64401b16c5e6846dd4",
|
|
98
|
+
"key": "format",
|
|
99
|
+
"label": "My Profile Format",
|
|
100
|
+
"link_type": "key",
|
|
101
|
+
"input_type": "single_line",
|
|
102
|
+
"trigger": [],
|
|
103
|
+
"_translates": {
|
|
104
|
+
"en-US": { "label": "My Profile Format" },
|
|
105
|
+
"th-TH": { "label": "รูปแบบโปรไฟล์" }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
{
|
|
111
|
+
"field": "entity_layout",
|
|
112
|
+
"type": "standard_component",
|
|
113
|
+
"unique_key": "standard_component_entity_layout_697ce53c3836353d0582",
|
|
114
|
+
"key": "form",
|
|
115
|
+
"label": "My Profile Layout",
|
|
116
|
+
"required": false,
|
|
117
|
+
"link_type": "key",
|
|
118
|
+
"entity": "entity_list",
|
|
119
|
+
"relate_ref": "standard_component_entity_list_my_profile_entity",
|
|
120
|
+
"filter": {
|
|
121
|
+
"type": "form"
|
|
122
|
+
},
|
|
123
|
+
"trigger": [],
|
|
124
|
+
"_translates": {
|
|
125
|
+
"en-US": { "label": "My Profile Layout" },
|
|
126
|
+
"th-TH": { "label": "Layout โปรไฟล์" }
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"key": "my_profile_get_endpoint_block",
|
|
135
|
+
"type": "column",
|
|
136
|
+
"layout": {
|
|
137
|
+
"num_of_col": 2,
|
|
138
|
+
"fields": [
|
|
139
|
+
[
|
|
140
|
+
{
|
|
141
|
+
"field": "switch",
|
|
142
|
+
"type": "standard_component",
|
|
143
|
+
"unique_key": "standard_component_switch_my_profile_get_endpoint",
|
|
144
|
+
"key": "enable_custom_get_endpoint",
|
|
145
|
+
"label": "Custom GET Endpoint",
|
|
146
|
+
"link_type": "key",
|
|
147
|
+
"yes_label": "Yes",
|
|
148
|
+
"no_label": "No",
|
|
149
|
+
"trigger": [
|
|
150
|
+
{
|
|
151
|
+
"field": "standard_component_rest_endpoint_my_profile_get",
|
|
152
|
+
"method": "show",
|
|
153
|
+
"value": "${ my_profile.enable_custom_get_endpoint }"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"_translates": {
|
|
157
|
+
"en-US": { "label": "Custom GET Endpoint", "yes_label": "Yes", "no_label": "No" },
|
|
158
|
+
"th-TH": { "label": "ใช้ Custom GET Endpoint", "yes_label": "ใช่", "no_label": "ไม่" }
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
[
|
|
163
|
+
{
|
|
164
|
+
"field": "rest_endpoint",
|
|
165
|
+
"type": "standard_component",
|
|
166
|
+
"unique_key": "standard_component_rest_endpoint_my_profile_get",
|
|
167
|
+
"key": "rest_endpoint_get",
|
|
168
|
+
"label": "GET Endpoint",
|
|
169
|
+
"link_type": "key",
|
|
170
|
+
"show_field": false,
|
|
171
|
+
"trigger": [],
|
|
172
|
+
"_translates": {
|
|
173
|
+
"en-US": { "label": "GET Endpoint" },
|
|
174
|
+
"th-TH": { "label": "GET Endpoint" }
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"key": "my_profile_update_endpoint_block",
|
|
183
|
+
"type": "column",
|
|
184
|
+
"layout": {
|
|
185
|
+
"num_of_col": 2,
|
|
186
|
+
"fields": [
|
|
187
|
+
[
|
|
188
|
+
{
|
|
189
|
+
"field": "switch",
|
|
190
|
+
"type": "standard_component",
|
|
191
|
+
"unique_key": "standard_component_switch_my_profile_update_endpoint",
|
|
192
|
+
"key": "enable_custom_update_endpoint",
|
|
193
|
+
"label": "Custom UPDATE Endpoint",
|
|
194
|
+
"link_type": "key",
|
|
195
|
+
"yes_label": "Yes",
|
|
196
|
+
"no_label": "No",
|
|
197
|
+
"trigger": [
|
|
198
|
+
{
|
|
199
|
+
"field": "standard_component_rest_endpoint_my_profile_update",
|
|
200
|
+
"method": "show",
|
|
201
|
+
"value": "${ my_profile.enable_custom_update_endpoint }"
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"_translates": {
|
|
205
|
+
"en-US": { "label": "Custom UPDATE Endpoint", "yes_label": "Yes", "no_label": "No" },
|
|
206
|
+
"th-TH": { "label": "ใช้ Custom UPDATE Endpoint", "yes_label": "ใช่", "no_label": "ไม่" }
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
[
|
|
211
|
+
{
|
|
212
|
+
"field": "rest_endpoint",
|
|
213
|
+
"type": "standard_component",
|
|
214
|
+
"unique_key": "standard_component_rest_endpoint_my_profile_update",
|
|
215
|
+
"key": "rest_endpoint_update",
|
|
216
|
+
"label": "UPDATE Endpoint",
|
|
217
|
+
"link_type": "key",
|
|
218
|
+
"show_field": false,
|
|
219
|
+
"trigger": [],
|
|
220
|
+
"_translates": {
|
|
221
|
+
"en-US": { "label": "UPDATE Endpoint" },
|
|
222
|
+
"th-TH": { "label": "UPDATE Endpoint" }
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
30
233
|
{
|
|
31
234
|
"key": "8cda8a009154eea31a02",
|
|
32
235
|
"type": "column",
|
|
@@ -396,11 +599,25 @@
|
|
|
396
599
|
"default_value": 60,
|
|
397
600
|
"link_type": "key",
|
|
398
601
|
"min_value": 1,
|
|
399
|
-
"suffix": "
|
|
602
|
+
"suffix": "seconds",
|
|
400
603
|
"trigger": [],
|
|
401
604
|
"decimal_place": 0,
|
|
402
605
|
"name": "sms_ttl"
|
|
403
606
|
},
|
|
607
|
+
{
|
|
608
|
+
"field": "input_number",
|
|
609
|
+
"type": "standard_component",
|
|
610
|
+
"unique_key": "standard_component_input_number_verify_max_attempts",
|
|
611
|
+
"key": "verify_max_attempts",
|
|
612
|
+
"label": "Max OTP verify attempts",
|
|
613
|
+
"required": false,
|
|
614
|
+
"default_value": 5,
|
|
615
|
+
"link_type": "key",
|
|
616
|
+
"min_value": 1,
|
|
617
|
+
"trigger": [],
|
|
618
|
+
"decimal_place": 0,
|
|
619
|
+
"name": "verify_max_attempts"
|
|
620
|
+
},
|
|
404
621
|
{
|
|
405
622
|
"field": "switch",
|
|
406
623
|
"type": "standard_component",
|
|
@@ -611,6 +828,127 @@
|
|
|
611
828
|
}
|
|
612
829
|
],
|
|
613
830
|
"key": "Mt9VNd4V8hVq98vQckQ0"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"source_key": "activate_change_password",
|
|
834
|
+
"title": "Activate Change Password ",
|
|
835
|
+
"actions": [],
|
|
836
|
+
"blocks": [
|
|
837
|
+
{
|
|
838
|
+
"key": "e34b078ad7284d03bcb7",
|
|
839
|
+
"type": "column",
|
|
840
|
+
"layout": {
|
|
841
|
+
"num_of_col": 2,
|
|
842
|
+
"fields": [
|
|
843
|
+
[
|
|
844
|
+
{
|
|
845
|
+
"field": "switch",
|
|
846
|
+
"type": "standard_component",
|
|
847
|
+
"unique_key": "standard_component_switch_11ccr3a01UYa82776f74",
|
|
848
|
+
"key": "send_email",
|
|
849
|
+
"label": "Send Email",
|
|
850
|
+
"default_value": false,
|
|
851
|
+
"link_type": "key",
|
|
852
|
+
"yes_label": "Yes",
|
|
853
|
+
"no_label": "No",
|
|
854
|
+
"trigger": [],
|
|
855
|
+
"name": "send_email"
|
|
856
|
+
}
|
|
857
|
+
],
|
|
858
|
+
[
|
|
859
|
+
{
|
|
860
|
+
"field": "select",
|
|
861
|
+
"type": "standard_component",
|
|
862
|
+
"unique_key": "standard_component_select_1wAJ4X68TTaHaPL28rzD",
|
|
863
|
+
"key": "default_gateway",
|
|
864
|
+
"label": "Default Gateway",
|
|
865
|
+
"required": true,
|
|
866
|
+
"default_value": "email",
|
|
867
|
+
"link_type": "key",
|
|
868
|
+
"entity": "custom",
|
|
869
|
+
"options": [
|
|
870
|
+
"email",
|
|
871
|
+
"sms"
|
|
872
|
+
],
|
|
873
|
+
"mode": "single",
|
|
874
|
+
"trigger": []
|
|
875
|
+
}
|
|
876
|
+
]
|
|
877
|
+
]
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"key": "CGiD3cc0bJB7Zryx59Q2",
|
|
882
|
+
"type": "column",
|
|
883
|
+
"layout": {
|
|
884
|
+
"num_of_col": 2,
|
|
885
|
+
"fields": [
|
|
886
|
+
[
|
|
887
|
+
{
|
|
888
|
+
"field": "select",
|
|
889
|
+
"type": "standard_component",
|
|
890
|
+
"unique_key": "standard_component_select_14b5Tb73c3880d8bb5fb",
|
|
891
|
+
"key": "sms_template",
|
|
892
|
+
"label": "SMS Template",
|
|
893
|
+
"required": true,
|
|
894
|
+
"link_type": "key",
|
|
895
|
+
"entity": "other_entity",
|
|
896
|
+
"entity_system": true,
|
|
897
|
+
"key_value": "code",
|
|
898
|
+
"display_template": "${ name }",
|
|
899
|
+
"list_template": "",
|
|
900
|
+
"options": [],
|
|
901
|
+
"relate_ref": "template",
|
|
902
|
+
"mode": "single",
|
|
903
|
+
"filters": [
|
|
904
|
+
{
|
|
905
|
+
"field": "type",
|
|
906
|
+
"condition": "is",
|
|
907
|
+
"value": "sms",
|
|
908
|
+
"field_data": {
|
|
909
|
+
"type": "options"
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
],
|
|
913
|
+
"trigger": []
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
[
|
|
917
|
+
{
|
|
918
|
+
"field": "select",
|
|
919
|
+
"type": "standard_component",
|
|
920
|
+
"unique_key": "standard_component_select_2515PK23008c80fc46e2",
|
|
921
|
+
"key": "email_template",
|
|
922
|
+
"label": "Email Template",
|
|
923
|
+
"required": true,
|
|
924
|
+
"link_type": "key",
|
|
925
|
+
"entity": "other_entity",
|
|
926
|
+
"entity_system": true,
|
|
927
|
+
"key_value": "code",
|
|
928
|
+
"display_template": "${ name }",
|
|
929
|
+
"list_template": "",
|
|
930
|
+
"options": [],
|
|
931
|
+
"relate_ref": "template",
|
|
932
|
+
"mode": "single",
|
|
933
|
+
"filters": [
|
|
934
|
+
{
|
|
935
|
+
"field": "type",
|
|
936
|
+
"condition": "is",
|
|
937
|
+
"value": "email",
|
|
938
|
+
"field_data": {
|
|
939
|
+
"type": "options"
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
],
|
|
943
|
+
"trigger": [],
|
|
944
|
+
"name": "email_template"
|
|
945
|
+
}
|
|
946
|
+
]
|
|
947
|
+
]
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
"key": "Mt9VNd4V8hVd08vQckQ0"
|
|
614
952
|
}
|
|
615
953
|
]
|
|
616
954
|
},
|
|
@@ -727,20 +1065,6 @@
|
|
|
727
1065
|
}
|
|
728
1066
|
]
|
|
729
1067
|
}
|
|
730
|
-
],
|
|
731
|
-
[
|
|
732
|
-
{
|
|
733
|
-
"field": "switch",
|
|
734
|
-
"type": "standard_component",
|
|
735
|
-
"unique_key": "standard_component_switch_e0759b4f5ffa18d59e79",
|
|
736
|
-
"key": "allow_registration",
|
|
737
|
-
"label": "Allow Registration Process",
|
|
738
|
-
"link_type": "key",
|
|
739
|
-
"yes_label": "Yes",
|
|
740
|
-
"no_label": "No",
|
|
741
|
-
"read_only": false,
|
|
742
|
-
"trigger": []
|
|
743
|
-
}
|
|
744
1068
|
]
|
|
745
1069
|
]
|
|
746
1070
|
}
|
|
@@ -973,7 +1297,7 @@
|
|
|
973
1297
|
],
|
|
974
1298
|
"source_key": "local",
|
|
975
1299
|
"actions": []
|
|
976
|
-
}
|
|
1300
|
+
}
|
|
977
1301
|
]
|
|
978
1302
|
}
|
|
979
1303
|
],
|
|
@@ -999,5 +1323,5 @@
|
|
|
999
1323
|
],
|
|
1000
1324
|
"restriction": [],
|
|
1001
1325
|
"hide_activity_log": true,
|
|
1002
|
-
"
|
|
1326
|
+
"show_refresh": false
|
|
1003
1327
|
}
|