cc-core-cli 1.0.159 → 1.0.162

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.159",
3
+ "version": "1.0.162",
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": {
@@ -482,6 +482,33 @@
482
482
  display: inline-block;
483
483
  }
484
484
 
485
+ .currency-input input {
486
+ width: 100%;
487
+ height: 32px;
488
+ padding: 4px 11px;
489
+ border: 1px solid #d9d9d9;
490
+ border-radius: 6px;
491
+ transition: all 0.2s;
492
+ outline: none;
493
+ font-size: 14px;
494
+ box-sizing: border-box;
495
+ }
496
+
497
+ .currency-input input:hover {
498
+ border-color: var(--primary-color);
499
+ }
500
+
501
+ .currency-input input:focus {
502
+ border-color: var(--primary-color);
503
+ box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
504
+ }
505
+
506
+ .currency-input input:disabled {
507
+ background-color: rgba(0, 0, 0, 0.04);
508
+ color: rgba(0, 0, 0, 0.25);
509
+ cursor: not-allowed;
510
+ }
511
+
485
512
  .ant-btn-icon .anticon.anticon-down svg {
486
513
  margin-top: -2px;
487
514
  width: 10px;
@@ -1244,22 +1271,42 @@
1244
1271
  color: var(--text-color);
1245
1272
  }
1246
1273
 
1247
- /* Modal Component Layout Edit Widget */
1248
- .modal-component-layout-edit-widget .draggable-row {
1274
+
1275
+ .modal-component-layout-edit-widget .draggable-row,
1276
+ .form-list .draggable-row {
1249
1277
  cursor: default !important;
1250
1278
  margin-bottom: 10px !important;
1251
- border: 1px dashed #d9d9d9 !important;
1252
1279
  border-radius: 5px;
1253
1280
  display: flex;
1254
1281
  align-items: center;
1255
1282
  background-color: #fff;
1256
1283
  }
1257
1284
 
1285
+ .form-list.items-list-actions .draggable-row {
1286
+ border: 1px dashed #d9d9d9 !important;
1287
+ }
1288
+
1289
+ .form-list .draggable-row .move {
1290
+ background: #f6f7f9;
1291
+ padding: 10px 0 10px 8px;
1292
+ margin-right: 5px;
1293
+ cursor: move;
1294
+ border-radius: 3px;
1295
+ }
1296
+
1297
+ .form-list .draggable-row .ant-col {
1298
+ min-height: unset;
1299
+ }
1300
+
1301
+
1302
+ .form-list .draggable-row .draggable-column-content {
1303
+ flex-grow: 1;
1304
+ }
1305
+
1258
1306
  .modal-component-layout-edit-widget .modal-component-layout-body-collapse {
1259
1307
  padding: 20px;
1260
1308
  }
1261
1309
 
1262
- /* Layout Collapse */
1263
1310
  .layout-collapse .layout-collapse-main {
1264
1311
  min-width: 200px;
1265
1312
  width: 100%;
@@ -2681,4 +2728,8 @@
2681
2728
 
2682
2729
  .ant-dropdown-menu-title-content a .anticon {
2683
2730
  margin-right: 2px;
2731
+ }
2732
+
2733
+ .detail-action-menu .ant-dropdown-menu-item .anticon {
2734
+ margin-right: 4px;
2684
2735
  }
@@ -57,4 +57,8 @@
57
57
 
58
58
  .menu-del-icon:hover {
59
59
  color: #F44336;
60
+ }
61
+
62
+ .ant-menu-item-only-child .ant-menu-title-content {
63
+ color: var(--menu-text-color);
60
64
  }
@@ -83,6 +83,7 @@ import {
83
83
  RewriteUrlService,
84
84
  SearchTextService,
85
85
  ReindexSearchTextService,
86
+ sanitizeDeep
86
87
  } from "@shopstack/cc-core-lib/core";
87
88
 
88
89
  import { CUSTOM_MODULES } from "src/modules/modules";
@@ -109,11 +110,11 @@ async function initialCustomService(app: NestFastifyApplication) {
109
110
  const RUN_CUSTOM_SERVICES = [];
110
111
  SPECIFY_CUSTOM_MODULES.length === 0
111
112
  ? CUSTOM_MODULES.forEach((c) => {
112
- RUN_CUSTOM_SERVICES.push(...(c.services || []));
113
- })
113
+ RUN_CUSTOM_SERVICES.push(...(c.services || []));
114
+ })
114
115
  : CUSTOM_MODULES.filter((c) => SPECIFY_CUSTOM_MODULES.includes(c.module.name)).forEach((c) => {
115
- RUN_CUSTOM_SERVICES.push(...(c.services || []));
116
- });
116
+ RUN_CUSTOM_SERVICES.push(...(c.services || []));
117
+ });
117
118
  for (const customService of RUN_CUSTOM_SERVICES) {
118
119
  await initialService(app, customService);
119
120
  }
@@ -279,6 +280,7 @@ async function bootstrap() {
279
280
  });
280
281
  }
281
282
  });
283
+
282
284
  app
283
285
  .getHttpAdapter()
284
286
  .getInstance()
@@ -287,6 +289,17 @@ async function bootstrap() {
287
289
  done();
288
290
  });
289
291
 
292
+ if (process.env.ENABLE_SANITIZE == 'true') {
293
+ app
294
+ .getHttpAdapter()
295
+ .getInstance()
296
+ .addHook('preHandler', async (request, reply) => {
297
+ if (request.body) {
298
+ request.body = sanitizeDeep(request.body);
299
+ }
300
+ });
301
+ }
302
+
290
303
  await app.listen(parseInt(process.env.PORT, 10), "0.0.0.0");
291
304
  CONST.HEALTH_CHECK = true;
292
305
  CONST.SYSTEM_NAME = process.env.SYSTEM_NAME || _.get(packageData, "name");