cc-core-cli 1.0.141 → 1.0.143
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 +1 -1
- package/template/admin/pages/_app.js +1 -1
- package/template/admin/public/static/styles/custom-antd.css +56 -20
- package/template/admin/public/static/styles/detail.css +46 -42
- package/template/admin/public/static/styles/entities.css +3 -3
- package/template/admin/public/static/styles/input.css +20 -0
- package/template/admin/public/static/styles/layout.css +4 -0
- package/template/core/src/app.module.ts +2 -1
- package/template/core/src/modules/modules.ts +13 -1
- package/template/core_v3/src/app.module.ts +3 -2
- package/template/core_v3/src/modules/modules.ts +13 -1
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
/* Primary Colors */
|
|
3
3
|
--primary-color: #04ace4;
|
|
4
4
|
--secondary-color: #c59b7c;
|
|
5
|
-
--info-color
|
|
6
|
-
--action-color:var(--info-color);
|
|
5
|
+
--info-color: #fcbc05;
|
|
6
|
+
--action-color: var(--info-color);
|
|
7
7
|
--success-color: #52c41a;
|
|
8
8
|
--processing-color: #1890ff;
|
|
9
9
|
--error-color: #f5222d;
|
|
10
10
|
--highlight-color: #f5222d;
|
|
11
11
|
--warning-color: #faad14;
|
|
12
12
|
--normal-color: #d9d9d9;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
|
|
14
|
+
|
|
15
15
|
/* Text Colors */
|
|
16
16
|
--text-color: rgba(0, 0, 0, 0.65);
|
|
17
17
|
--text-color-secondary: rgba(0, 0, 0, 0.35);
|
|
18
18
|
--text-color-label: rgba(0, 0, 0, 0.85);
|
|
19
19
|
--text-color-disabled: rgba(0, 0, 0, 0.25);
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
/* Background Colors */
|
|
22
22
|
--background-color: #f6f7f9;
|
|
23
23
|
--white-color: #ffffff;
|
|
@@ -33,30 +33,31 @@
|
|
|
33
33
|
--antd-table-disabled-bg: #f5f5f5;
|
|
34
34
|
--antd-empty-bg: #fafafa;
|
|
35
35
|
--scrollbar-thumb-hover: #bfbfbf;
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
/* Border & Radius */
|
|
38
38
|
--border-color-base: #d9d9d9;
|
|
39
39
|
--border-color-split: rgba(0, 0, 0, 0.05);
|
|
40
40
|
--border-radius-base: 6px;
|
|
41
41
|
--border-radius-sm: 5px;
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
/* Layout */
|
|
44
44
|
--layout-header-background: #ffffff;
|
|
45
45
|
--layout-header-height: 60px;
|
|
46
46
|
--layout-footer-background: #04ace4;
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
/* Menu */
|
|
49
49
|
--menu-dark-bg: #ffffff;
|
|
50
50
|
--menu-dark-submenu-bg: #f6f7f9;
|
|
51
51
|
--menu-item-color: rgba(0, 0, 0, 0.65);
|
|
52
52
|
/* --menu-highlight-color: #04ace4; */
|
|
53
|
-
--menu-highlight-color: #1890ff;
|
|
53
|
+
--menu-highlight-color: #1890ff;
|
|
54
|
+
/* AntD default */
|
|
54
55
|
--menu-item-active-bg: #04ace4;
|
|
55
56
|
--menu-item-group-title-color: #625f6e;
|
|
56
57
|
--menu-popup-bg: #ffffff;
|
|
57
58
|
--menu-inline-toplevel-item-height: 36px;
|
|
58
59
|
--menu-item-height: 36px;
|
|
59
|
-
|
|
60
|
+
|
|
60
61
|
/* Table */
|
|
61
62
|
--table-header-bg: #fafafa;
|
|
62
63
|
--table-header-color: rgba(0, 0, 0, 0.85);
|
|
@@ -72,18 +73,18 @@
|
|
|
72
73
|
--code-family: "Anonymous Pro", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
73
74
|
--label-bigger: 16px;
|
|
74
75
|
--label-color: rgba(0, 0, 0, .65);
|
|
75
|
-
|
|
76
|
+
|
|
76
77
|
/* Card */
|
|
77
78
|
--card-padding-base: 16px;
|
|
78
79
|
--card-padding-wider: 16px;
|
|
79
|
-
|
|
80
|
+
|
|
80
81
|
/* List */
|
|
81
82
|
--list-layouts-bg: #fafafa;
|
|
82
83
|
--list-layouts-border: #bfbfbf;
|
|
83
|
-
|
|
84
|
+
|
|
84
85
|
/* Breadcrumb */
|
|
85
86
|
--breadcrumb-link-color-hover: #04ace4;
|
|
86
|
-
|
|
87
|
+
|
|
87
88
|
/* Custom Colors */
|
|
88
89
|
--btn-primary-color: #420035;
|
|
89
90
|
--system-yellow-color: #FDDF97;
|
|
@@ -91,19 +92,54 @@
|
|
|
91
92
|
--btn-default-bg: #ffffff;
|
|
92
93
|
--btn-default-color: rgba(0, 0, 0, 0.65);
|
|
93
94
|
--btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
|
|
94
|
-
|
|
95
|
+
|
|
95
96
|
/* Radio Button Colors */
|
|
96
97
|
--radio-button-hover-color: #1890ff;
|
|
97
98
|
--radio-button-bg: #e6f7ff;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
/* AntD Picker Styles */
|
|
101
|
-
.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,
|
|
102
|
-
.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
|
|
102
|
+
.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,
|
|
103
|
+
.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
|
|
103
104
|
.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {
|
|
104
|
-
|
|
105
|
+
background-color: var(--primary-color) !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner {
|
|
109
|
+
background-color: var(--primary-color) !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ant-tag {
|
|
113
|
+
background-color: #fafafa !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ant-tag .ant-typography {
|
|
117
|
+
font-size: 12px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.layouts-sub-sider-horizontal .ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected,
|
|
121
|
+
.layouts-sub-sider-horizontal .ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover {
|
|
122
|
+
color: var(--submenu-bg-active-color) !important;
|
|
123
|
+
border-bottom: 2px solid var(--submenu-bg-active-color) !important;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ant-tag.tag-bool-true {
|
|
127
|
+
background-color: var(--boolean-true) !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ant-tag.tag-bool-false {
|
|
131
|
+
background-color: var(--boolean-false) !important;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ant-tabs-card>.ant-tabs-nav .ant-tabs-tab-active {
|
|
135
|
+
background-color: white !important;
|
|
136
|
+
border-bottom-color: white !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab {
|
|
140
|
+
margin-left: 0px;
|
|
105
141
|
}
|
|
106
142
|
|
|
107
|
-
.ant-
|
|
108
|
-
|
|
143
|
+
.ant-empty-img-simple-path {
|
|
144
|
+
fill: #fafafa !important;
|
|
109
145
|
}
|
|
@@ -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;
|
|
@@ -504,8 +533,9 @@
|
|
|
504
533
|
padding: 0px;
|
|
505
534
|
}
|
|
506
535
|
|
|
507
|
-
.table-card .table-action .table-action-button
|
|
508
|
-
|
|
536
|
+
.table-card .table-action .table-action-button,
|
|
537
|
+
.table-card .table-action .table-action-button:hover {
|
|
538
|
+
color: var(--action-color) !important;
|
|
509
539
|
}
|
|
510
540
|
|
|
511
541
|
.table-card .table-action .ant-btn {
|
|
@@ -662,44 +692,6 @@
|
|
|
662
692
|
}
|
|
663
693
|
|
|
664
694
|
/* 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
695
|
/* Custom upload container of image */
|
|
704
696
|
.mutiple-upload-files-container,
|
|
705
697
|
.mutiple-upload-images-container {
|
|
@@ -2618,11 +2610,11 @@
|
|
|
2618
2610
|
padding: 0px !important;
|
|
2619
2611
|
}
|
|
2620
2612
|
|
|
2621
|
-
.ant-select-selector,
|
|
2613
|
+
/* .ant-select-selector,
|
|
2622
2614
|
.ant-input-number-outlined,
|
|
2623
2615
|
.ant-input-outlined {
|
|
2624
2616
|
background-color: white !important;
|
|
2625
|
-
}
|
|
2617
|
+
} */
|
|
2626
2618
|
|
|
2627
2619
|
.ant-table-wrapper .ant-table-thead>tr>th {
|
|
2628
2620
|
background-color: var(--table-header-bg) !important;
|
|
@@ -2642,4 +2634,16 @@
|
|
|
2642
2634
|
|
|
2643
2635
|
.setting .ant-card-body {
|
|
2644
2636
|
padding: 16px;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
.ant-form-item-label>label {
|
|
2640
|
+
color: rgba(0, 0, 0, .65) !important;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
.ant-dropdown-menu-title-content a {
|
|
2644
|
+
display: flex;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
.ant-dropdown-menu-title-content a .anticon {
|
|
2648
|
+
margin-right: 2px;
|
|
2645
2649
|
}
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
border-radius: 5px;
|
|
57
57
|
padding-right: 5px;
|
|
58
58
|
margin-bottom: 15px;
|
|
59
|
-
background-color: var(--
|
|
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(--
|
|
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(--
|
|
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
|
+
}
|
|
@@ -23,6 +23,10 @@ html body.ant-scrolling-effect {
|
|
|
23
23
|
padding: 10px 16px !important;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
.ant-table-wrapper .ant-table-cell.ant-table-cell-fix-right {
|
|
27
|
+
padding: 10px 8px !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
.ant-typography.ant-typography-secondary {
|
|
27
31
|
color: var(--text-color-secondary);
|
|
28
32
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
26
|
+
const EXTERNAL_CUSTOM_MODULES = [];
|
|
27
|
+
|
|
28
|
+
export { CUSTOM_MODULES, EXTERNAL_CUSTOM_MODULES };
|