cc-core-cli 1.0.140 → 1.0.142

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.140",
3
+ "version": "1.0.142",
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": {
@@ -10,7 +10,7 @@ import { CustomApp } from '@shopstack/cc-admin-lib'
10
10
  import { importCustomModules } from '@shopstack/cc-admin-lib';
11
11
 
12
12
  try {
13
- const modules = require.context('../modules', true)
13
+ const modules = require.context('../modules', true, /.(js|json)/)
14
14
  importCustomModules(modules)
15
15
  } catch (e) { }
16
16
 
@@ -315,6 +315,10 @@
315
315
  }
316
316
 
317
317
  /* Custom Button Styles */
318
+ .ant-btn-secondary {
319
+ border-color: var(--border-color-base);
320
+ }
321
+
318
322
  .ant-btn.ant-btn-secondary:focus,
319
323
  .ant-btn.ant-btn-secondary:hover {
320
324
  color: white;
@@ -412,10 +416,35 @@
412
416
  height: 32px;
413
417
  }
414
418
 
419
+
420
+ .ant-input-number-group-addon {
421
+ padding: 0 11px;
422
+ background: transparent;
423
+ border: none;
424
+ }
425
+
426
+ .ant-input-number-group-wrapper {
427
+ width: 100%;
428
+ }
429
+
415
430
  .ant-input-number-affix-wrapper:focus-within {
416
431
  box-shadow: 0 0 0 1px var(--primary-color) !important;
417
432
  }
418
433
 
434
+ .ant-input-number-affix-wrapper .ant-input-number-suffix {
435
+ display: flex;
436
+ align-items: center;
437
+ gap: 4px;
438
+ }
439
+
440
+ .ant-input-number-affix-wrapper .ant-input-number-suffix .number-input-suffix {
441
+ margin-right: 4px;
442
+ }
443
+
444
+ .detail-number-input {
445
+ width: 100%;
446
+ }
447
+
419
448
  .detail-number-input .tag,
420
449
  .detail-string-input .tag {
421
450
  display: none;
@@ -662,44 +691,6 @@
662
691
  }
663
692
 
664
693
  /* Custom Ant InputNumber */
665
- .input-number-container.ant-input-affix-wrapper {
666
- padding: 0 0 0 0px;
667
- }
668
-
669
- .input-number-container.ant-input-affix-wrapper .ant-input-number,
670
- .input-number-container.ant-input-affix-wrapper .ant-input-number:focus,
671
- .input-number-container.ant-input-affix-wrapper .ant-input-number-focused {
672
- border: none;
673
- box-shadow: none;
674
- }
675
-
676
- .input-number-container.ant-input-affix-wrapper.ant-input-number-without-prefix {
677
- background: #f5f5f5;
678
- }
679
-
680
- .input-number-container.ant-input-affix-wrapper .ant-input-number-input {
681
- padding: 0px;
682
- }
683
-
684
- .input-number-container.ant-input-affix-wrapper.suffix .ant-input-number .ant-input-number-handler-up {
685
- border-top-right-radius: 0px;
686
- border-right: 1px solid #d9d9d9;
687
- }
688
-
689
- .input-number-container.ant-input-affix-wrapper.suffix .ant-input-number .ant-input-number-handler-down {
690
- border-right: 1px solid #d9d9d9;
691
- border-bottom-right-radius: 0px;
692
- }
693
-
694
- .input-number-container.ant-input-affix-wrapper.suffix .ant-input-suffix {
695
- padding-right: 11px;
696
- }
697
-
698
- .input-number-container.ant-input-affix-wrapper:focus-within {
699
- box-shadow: 0 0 0 2px rgba(var(--primary-color), 0.2);
700
- border-color: var(--primary-color);
701
- }
702
-
703
694
  /* Custom upload container of image */
704
695
  .mutiple-upload-files-container,
705
696
  .mutiple-upload-images-container {
@@ -2618,11 +2609,11 @@
2618
2609
  padding: 0px !important;
2619
2610
  }
2620
2611
 
2621
- .ant-select-selector,
2612
+ /* .ant-select-selector,
2622
2613
  .ant-input-number-outlined,
2623
2614
  .ant-input-outlined {
2624
2615
  background-color: white !important;
2625
- }
2616
+ } */
2626
2617
 
2627
2618
  .ant-table-wrapper .ant-table-thead>tr>th {
2628
2619
  background-color: var(--table-header-bg) !important;
@@ -2642,4 +2633,8 @@
2642
2633
 
2643
2634
  .setting .ant-card-body {
2644
2635
  padding: 16px;
2636
+ }
2637
+
2638
+ .ant-form-item-label>label {
2639
+ color: rgba(0, 0, 0, .65) !important;
2645
2640
  }
@@ -56,7 +56,7 @@
56
56
  border-radius: 5px;
57
57
  padding-right: 5px;
58
58
  margin-bottom: 15px;
59
- background-color: var(--background-color);
59
+ background-color: var(--menu-dark-submenu-bg);
60
60
  border: 1px dashed var(--border-color-base);
61
61
  min-height: 46px !important;
62
62
  }
@@ -324,7 +324,7 @@
324
324
  .page-entities .compute-field-container .compute-field,
325
325
  .page-entities .compute-field-container .widget-component {
326
326
  cursor: pointer;
327
- background-color: var(--background-color);
327
+ background-color: var(--menu-dark-submenu-bg);
328
328
  margin-bottom: 5px;
329
329
  border-radius: 5px;
330
330
  padding: 5px 15px;
@@ -551,7 +551,7 @@
551
551
  .render-tabs-component .ant-tabs-tab {
552
552
  border: 1px solid var(--list-layouts-border) !important;
553
553
  border-bottom: unset !important;
554
- background-color: var(--background-color) !important;
554
+ /* background-color: var(--primary-color) !important; */
555
555
  }
556
556
 
557
557
  .render-tabs-component .ant-tabs-tab.ant-tabs-tab-active {
@@ -75,3 +75,23 @@
75
75
  text-align: center;
76
76
  margin-top: 10px;
77
77
  }
78
+
79
+ .detail-related-one2one-input {
80
+ position: relative;
81
+ }
82
+
83
+ .detail-related-one2one-input .tag {
84
+ display: none;
85
+ position: absolute;
86
+ right: 70px;
87
+ top: 50%;
88
+ transform: translateY(-50%);
89
+ }
90
+
91
+ .detail-related-one2one-input .tag.force-show {
92
+ display: inline-block;
93
+ }
94
+
95
+ .detail-related-one2one-input:hover .tag {
96
+ display: inline-block;
97
+ }
@@ -0,0 +1,144 @@
1
+ .json-diff-viewer {
2
+ width: 100%;
3
+ border-collapse: collapse;
4
+ border-spacing: 0;
5
+ table-layout: fixed;
6
+ }
7
+ .json-diff-viewer tr {
8
+ vertical-align: top;
9
+ }
10
+ .json-diff-viewer tr .line-add {
11
+ background: #a5d6a7;
12
+ }
13
+ .json-diff-viewer tr .line-remove {
14
+ background: #ef9a9a;
15
+ }
16
+ .json-diff-viewer tr .line-modify {
17
+ background: #ffe082;
18
+ }
19
+ .json-diff-viewer tr:hover td {
20
+ position: relative;
21
+ }
22
+ .json-diff-viewer tr:hover td:before {
23
+ position: absolute;
24
+ top: 0;
25
+ left: 0;
26
+ width: 100%;
27
+ height: 100%;
28
+ background: rgba(0, 0, 0, 0.05);
29
+ content: '';
30
+ pointer-events: none;
31
+ }
32
+ .json-diff-viewer tr.message-line {
33
+ border-top: 1px solid;
34
+ border-bottom: 1px solid;
35
+ text-align: center;
36
+ }
37
+ .json-diff-viewer tr.message-line td {
38
+ padding: 4px 0;
39
+ font-size: 12px;
40
+ }
41
+ .json-diff-viewer tr.expand-line {
42
+ text-align: center;
43
+ }
44
+ .json-diff-viewer tr.expand-line td {
45
+ padding: 4px 0;
46
+ }
47
+ .json-diff-viewer tr.expand-line:hover td:before {
48
+ background: transparent;
49
+ }
50
+ .json-diff-viewer tr.expand-line .has-lines-before {
51
+ border-bottom: 1px solid;
52
+ }
53
+ .json-diff-viewer tr.expand-line .has-lines-after {
54
+ border-top: 1px solid;
55
+ }
56
+ .json-diff-viewer tr.expand-line button {
57
+ padding: 0;
58
+ border: none;
59
+ margin: 0 0.5em;
60
+ background: transparent;
61
+ color: #2196f3;
62
+ cursor: pointer;
63
+ font-size: 12px;
64
+ user-select: none;
65
+ }
66
+ .json-diff-viewer tr.expand-line button:hover {
67
+ text-decoration: underline;
68
+ }
69
+ .json-diff-viewer td {
70
+ padding: 1px;
71
+ font-size: 0;
72
+ }
73
+ .json-diff-viewer td.line-number {
74
+ box-sizing: content-box;
75
+ padding: 0 8px;
76
+ border-right: 1px solid;
77
+ font-family: monospace;
78
+ font-size: 14px;
79
+ text-align: right;
80
+ user-select: none;
81
+ }
82
+ .json-diff-viewer pre {
83
+ overflow: hidden;
84
+ margin: 0;
85
+ font-size: 12px;
86
+ line-height: 16px;
87
+ white-space: pre-wrap;
88
+ word-break: break-all;
89
+ }
90
+ .json-diff-viewer pre .inline-diff-add {
91
+ background: rgba(0, 0, 0, 0.08);
92
+ text-decoration: underline;
93
+ word-break: break-all;
94
+ }
95
+ .json-diff-viewer pre .inline-diff-remove {
96
+ background: rgba(0, 0, 0, 0.08);
97
+ text-decoration: line-through;
98
+ word-break: break-all;
99
+ }
100
+ .json-diff-viewer-virtual pre {
101
+ overflow-x: auto;
102
+ white-space: pre;
103
+ }
104
+ .json-diff-viewer-virtual pre::-webkit-scrollbar {
105
+ display: none;
106
+ }
107
+
108
+ .json-diff-viewer.json-diff-viewer-theme-monokai {
109
+ background: #272822;
110
+ color: #f8f8f2;
111
+ }
112
+ .json-diff-viewer.json-diff-viewer-theme-monokai .line-number {
113
+ color: #999;
114
+ }
115
+ .json-diff-viewer.json-diff-viewer-theme-monokai tr:hover {
116
+ background: #3e3d32;
117
+ }
118
+ .json-diff-viewer.json-diff-viewer-theme-monokai tr .line-add {
119
+ background: #040;
120
+ }
121
+ .json-diff-viewer.json-diff-viewer-theme-monokai tr .line-remove {
122
+ background: #400;
123
+ }
124
+ .json-diff-viewer.json-diff-viewer-theme-monokai tr .line-modify {
125
+ background: #440;
126
+ }
127
+ .json-diff-viewer.json-diff-viewer-theme-monokai tr.expand-line button {
128
+ color: #f8f8f2;
129
+ }
130
+ .json-diff-viewer.json-diff-viewer-theme-monokai .string {
131
+ color: #e6db74;
132
+ }
133
+ .json-diff-viewer.json-diff-viewer-theme-monokai .number,
134
+ .json-diff-viewer.json-diff-viewer-theme-monokai .boolean,
135
+ .json-diff-viewer.json-diff-viewer-theme-monokai .null {
136
+ color: #ae81ff;
137
+ }
138
+ .json-diff-viewer.json-diff-viewer-theme-monokai .key {
139
+ color: #f92672;
140
+ }
141
+ .json-diff-viewer.json-diff-viewer-theme-monokai .invalid {
142
+ background: #960050;
143
+ color: #fff;
144
+ }
@@ -35,6 +35,8 @@
35
35
  @import url("./editTable.css");
36
36
  @import url("./menu.css");
37
37
  @import url("@xyflow/react/dist/style.css");
38
+ @import url("./json-diff-viewer.css");
39
+
38
40
 
39
41
  /*----- Custom table ------*/
40
42
  .ant-table-column-sorters {
@@ -41,6 +41,7 @@ import {
41
41
  PipelineModule,
42
42
  RewriteUrlModule,
43
43
  SearchTextModule,
44
+ ExternalProviderModule,
44
45
  } from "@shopstack/cc-core-lib/core";
45
46
 
46
47
  import { CoreModule } from "./core/core.module";
@@ -156,7 +157,7 @@ if (+process.env.MONGODB_MAX_POOL_SIZE) {
156
157
  LayoutModule,
157
158
  RewriteUrlModule,
158
159
  SearchTextModule,
159
-
160
+ ExternalProviderModule,
160
161
  // ...RUN_CUSTOM_MODULES,
161
162
 
162
163
  CoreModule,
@@ -6,6 +6,16 @@
6
6
  * { module: ProductsModule, services: [ProductService] },
7
7
  * { module: OrdersModule, services: [ChannelService, OrderService, OrderItemService] }
8
8
  * ];
9
+ *
10
+ * const EXTERNAL_CUSTOM_MODULES = [
11
+ * { external: true, module_code: "external_module_code", domain: "external_module_domain" },
12
+ * ];
13
+ * example:
14
+ * {
15
+ * external: true,
16
+ * module_code: "module_code_from_module.json",
17
+ * domain: "http://localhost:3001"
18
+ * }
9
19
 
10
20
  export { CUSTOM_MODULES };
11
21
 
@@ -13,4 +23,6 @@ export { CUSTOM_MODULES };
13
23
 
14
24
  const CUSTOM_MODULES = [];
15
25
 
16
- export { CUSTOM_MODULES };
26
+ const EXTERNAL_CUSTOM_MODULES = [];
27
+
28
+ export { CUSTOM_MODULES, EXTERNAL_CUSTOM_MODULES };
@@ -41,7 +41,8 @@ import {
41
41
  CustomFunctionModule,
42
42
  CacheModule,
43
43
  PipelineModule,
44
- RewriteUrlModule
44
+ RewriteUrlModule,
45
+ ExternalProviderModule
45
46
  } from '@shopstack/cc-core-lib/core'
46
47
 
47
48
  import { CoreModule } from './core/core.module'
@@ -163,7 +164,7 @@ if (+process.env.MONGODB_MAX_POOL_SIZE) {
163
164
  PipelineModule,
164
165
  LayoutModule,
165
166
  RewriteUrlModule,
166
-
167
+ ExternalProviderModule,
167
168
  // ...RUN_CUSTOM_MODULES,
168
169
 
169
170
  CoreModule
@@ -6,6 +6,16 @@
6
6
  * { module: ProductsModule, services: [ProductService] },
7
7
  * { module: OrdersModule, services: [ChannelService, OrderService, OrderItemService] }
8
8
  * ];
9
+ *
10
+ * const EXTERNAL_CUSTOM_MODULES = [
11
+ * { external: true, module_code: "external_module_code", domain: "external_module_domain" },
12
+ * ];
13
+ * example:
14
+ * {
15
+ * external: true,
16
+ * module_code: "module_code_from_module.json",
17
+ * domain: "http://localhost:3001"
18
+ * }
9
19
 
10
20
  export { CUSTOM_MODULES };
11
21
 
@@ -13,4 +23,6 @@ export { CUSTOM_MODULES };
13
23
 
14
24
  const CUSTOM_MODULES = [];
15
25
 
16
- export { CUSTOM_MODULES };
26
+ const EXTERNAL_CUSTOM_MODULES = [];
27
+
28
+ export { CUSTOM_MODULES, EXTERNAL_CUSTOM_MODULES };