cc-core-cli 1.0.26 → 1.0.28
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/bin/index.js +3 -6
- package/package.json +1 -1
- package/template/admin/.env.develop +1 -1
- package/template/admin/_env +10 -0
- package/template/admin/_gitignore +30 -0
- package/template/admin/_npmrc +1 -0
- package/template/core/_env +12 -0
- package/template/core/_gitignore +41 -0
- package/template/core/_npmrc +1 -0
- package/template/core/src/core/setting/_settings/import_export.layout.json +69 -0
- package/template/core/src/core/setting/_settings/theme_layout.layout.json +15 -6
package/bin/index.js
CHANGED
|
@@ -34,12 +34,9 @@ if (action === 'init') {
|
|
|
34
34
|
|
|
35
35
|
const spinner = ora('(1/1) Copying files!').start();
|
|
36
36
|
fs.copySync(`${__dirname}/../template/${project}`, path)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// if (project === 'admin') {
|
|
41
|
-
// fs.copyFileSync(`${__dirname}/../template/${project}/.env.develop`, path)
|
|
42
|
-
// }
|
|
37
|
+
fs.renameSync(`${path}/_env`, `${path}/.env`)
|
|
38
|
+
fs.renameSync(`${path}/_gitignore`, `${path}/.gitignore`)
|
|
39
|
+
fs.renameSync(`${path}/_npmrc`, `${path}/.npmrc`)
|
|
43
40
|
spinner.succeed('(1/1) Copying files!')
|
|
44
41
|
|
|
45
42
|
if (path !== '.') {
|
package/package.json
CHANGED
|
@@ -6,5 +6,5 @@ COOKIE_SAME_SITE=
|
|
|
6
6
|
SYSTEM_APP_KEY=0939f325-e24f-4de3-8796-4d5e7243849c
|
|
7
7
|
SYSTEM_SECRET_KEY=ogi6xld0kftb5yvm6t17x2a6bmyipnfja6s7v5v2
|
|
8
8
|
API_GATEWAY=http://localhost:3000/api/v1
|
|
9
|
-
API_GATEWAY_MEDIA=http://localhost:3000
|
|
9
|
+
API_GATEWAY_MEDIA=http://localhost:3000
|
|
10
10
|
GOOGLE_MAP_KEY=
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
NODE_ENV=NODE_ENV
|
|
2
|
+
PORT=4000
|
|
3
|
+
COOKIE_SECURE=false
|
|
4
|
+
COOKIE_HTTP_ONLY=false
|
|
5
|
+
COOKIE_SAME_SITE=
|
|
6
|
+
SYSTEM_APP_KEY=0939f325-e24f-4de3-8796-4d5e7243849c
|
|
7
|
+
SYSTEM_SECRET_KEY=ogi6xld0kftb5yvm6t17x2a6bmyipnfja6s7v5v2
|
|
8
|
+
API_GATEWAY=http://127.0.0.1:3000/api/v1
|
|
9
|
+
API_GATEWAY_MEDIA=http://127.0.0.1:3000
|
|
10
|
+
GOOGLE_MAP_KEY=
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# These are some examples of commonly ignored file patterns.
|
|
2
|
+
# You should customize this list as applicable to your project.
|
|
3
|
+
# Learn more about .gitignore:
|
|
4
|
+
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
|
|
5
|
+
|
|
6
|
+
# Node artifact files
|
|
7
|
+
node_modules/
|
|
8
|
+
.next/
|
|
9
|
+
|
|
10
|
+
# Generated by MacOS
|
|
11
|
+
.DS_Store
|
|
12
|
+
|
|
13
|
+
# Generated by Windows
|
|
14
|
+
Thumbs.db
|
|
15
|
+
|
|
16
|
+
# Applications
|
|
17
|
+
*.app
|
|
18
|
+
*.exe
|
|
19
|
+
*.war
|
|
20
|
+
|
|
21
|
+
# Large media files
|
|
22
|
+
*.mp4
|
|
23
|
+
*.tiff
|
|
24
|
+
*.avi
|
|
25
|
+
*.flv
|
|
26
|
+
*.mov
|
|
27
|
+
*.wmv
|
|
28
|
+
|
|
29
|
+
# Environment file
|
|
30
|
+
.env
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//registry.npmjs.org/:_authToken={SHOPSATCK_TOKEN}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
NODE_ENV=dev
|
|
2
|
+
PORT=3000
|
|
3
|
+
LOOP_BACK_IP=0.0.0.0
|
|
4
|
+
MONGODB_URI=mongodb://{username}:{password}@127.0.0.1:27017/dev_db?authSource=admin
|
|
5
|
+
SESSION_REDIS_URL=redis://127.0.0.1:6379/1
|
|
6
|
+
CACHE_REDIS_URL=redis://127.0.0.1:6379/1
|
|
7
|
+
QUEUE_REDIS_URL=redis://127.0.0.1:6379/2
|
|
8
|
+
QUEUE_CONCURRENCY=1
|
|
9
|
+
MAX_WORKER=1
|
|
10
|
+
CUSTOM_MODULES=
|
|
11
|
+
DEFAULT_API_KEY=0939f325-e24f-4de3-8796-4d5e7243849c
|
|
12
|
+
DEFAULT_SECRET_KEY=ogi6xld0kftb5yvm6t17x2a6bmyipnfja6s7v5v2
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# These are some examples of commonly ignored file patterns.
|
|
2
|
+
# You should customize this list as applicable to your project.
|
|
3
|
+
# Learn more about .gitignore:
|
|
4
|
+
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
|
|
5
|
+
|
|
6
|
+
# Node artifact files
|
|
7
|
+
node_modules/
|
|
8
|
+
dist/
|
|
9
|
+
tmp/
|
|
10
|
+
temp/
|
|
11
|
+
lib/
|
|
12
|
+
storage/*
|
|
13
|
+
!storage/public/
|
|
14
|
+
storage/public/*
|
|
15
|
+
!storage/public/system/
|
|
16
|
+
storage/public/system/*
|
|
17
|
+
!storage/public/system/menu/
|
|
18
|
+
storage/public/system/menu/*
|
|
19
|
+
!storage/public/system/menu/icons/
|
|
20
|
+
|
|
21
|
+
# Generated by MacOS
|
|
22
|
+
.DS_Store
|
|
23
|
+
|
|
24
|
+
# Generated by Windows
|
|
25
|
+
Thumbs.db
|
|
26
|
+
|
|
27
|
+
# Applications
|
|
28
|
+
*.app
|
|
29
|
+
*.exe
|
|
30
|
+
*.war
|
|
31
|
+
|
|
32
|
+
# Large media files
|
|
33
|
+
*.mp4
|
|
34
|
+
*.tiff
|
|
35
|
+
*.avi
|
|
36
|
+
*.flv
|
|
37
|
+
*.mov
|
|
38
|
+
*.wmv
|
|
39
|
+
|
|
40
|
+
# Environment file
|
|
41
|
+
.env
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//registry.npmjs.org/:_authToken={{SHOPSTACK_TOKEN}}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"detail": {
|
|
3
|
+
"title": {},
|
|
4
|
+
"blocks": [
|
|
5
|
+
{
|
|
6
|
+
"key": "80bbead236c45bb2a8d5",
|
|
7
|
+
"type": "column",
|
|
8
|
+
"layout": {
|
|
9
|
+
"num_of_col": 2,
|
|
10
|
+
"fields": [
|
|
11
|
+
[
|
|
12
|
+
{
|
|
13
|
+
"field": "input_number",
|
|
14
|
+
"type": "standard_component",
|
|
15
|
+
"unique_key": "standard_component_input_number_e9fecf9bf32b7a009476",
|
|
16
|
+
"key": "import_export_setting.export_maximum_rows",
|
|
17
|
+
"label": "Export Maximum Rows",
|
|
18
|
+
"default_value": 10000,
|
|
19
|
+
"link_type": "key",
|
|
20
|
+
"min_value": 1,
|
|
21
|
+
"trigger": [],
|
|
22
|
+
"decimal_place": 0,
|
|
23
|
+
"required": true
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
{
|
|
28
|
+
"field": "input",
|
|
29
|
+
"type": "standard_component",
|
|
30
|
+
"unique_key": "standard_component_input_03fbfc198782fc2db785",
|
|
31
|
+
"key": "import_export_setting.show_log_maximum_day",
|
|
32
|
+
"label": "Maximum days show Import/Export Log",
|
|
33
|
+
"description": "example : 1m, 1h, 1d",
|
|
34
|
+
"link_type": "key",
|
|
35
|
+
"entity": "not_use",
|
|
36
|
+
"input_type": "single_line",
|
|
37
|
+
"reg_exp_pattern": "^[0-9]*[hmd]",
|
|
38
|
+
"trigger": [],
|
|
39
|
+
"use_function": false
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"redirect_mode": "not_redirect"
|
|
47
|
+
},
|
|
48
|
+
"name": "Import Export",
|
|
49
|
+
"code": "import_export",
|
|
50
|
+
"type": [
|
|
51
|
+
"form"
|
|
52
|
+
],
|
|
53
|
+
"allow_actions": [
|
|
54
|
+
{
|
|
55
|
+
"action": "create",
|
|
56
|
+
"role_restrictions": []
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"action": "update",
|
|
60
|
+
"role_restrictions": []
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"deploy_package_settings": [
|
|
64
|
+
"general"
|
|
65
|
+
],
|
|
66
|
+
"restriction": [],
|
|
67
|
+
"hide_activity_log": true,
|
|
68
|
+
"hide_refresh": true
|
|
69
|
+
}
|
|
@@ -371,9 +371,9 @@
|
|
|
371
371
|
{
|
|
372
372
|
"field": "color_picker",
|
|
373
373
|
"type": "standard_component",
|
|
374
|
-
"unique_key": "
|
|
375
|
-
"key": "
|
|
376
|
-
"label": "
|
|
374
|
+
"unique_key": "standard_component_color_picker_ed9f7a7f83fce9d196f1",
|
|
375
|
+
"key": "group_table_headers_bg",
|
|
376
|
+
"label": "Table Header Group Background Color",
|
|
377
377
|
"link_type": "key",
|
|
378
378
|
"trigger": []
|
|
379
379
|
}
|
|
@@ -411,9 +411,9 @@
|
|
|
411
411
|
{
|
|
412
412
|
"field": "color_picker",
|
|
413
413
|
"type": "standard_component",
|
|
414
|
-
"unique_key": "
|
|
415
|
-
"key": "
|
|
416
|
-
"label": "Boolean
|
|
414
|
+
"unique_key": "standard_component_color_picker_ed5f7a7f83fce9d196f3",
|
|
415
|
+
"key": "boolean_value_true",
|
|
416
|
+
"label": "Boolean true value color",
|
|
417
417
|
"link_type": "key",
|
|
418
418
|
"trigger": []
|
|
419
419
|
}
|
|
@@ -446,6 +446,15 @@
|
|
|
446
446
|
"label": "Table Row Select Color",
|
|
447
447
|
"link_type": "key",
|
|
448
448
|
"trigger": []
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"field": "color_picker",
|
|
452
|
+
"type": "standard_component",
|
|
453
|
+
"unique_key": "standard_component_color_picker_ed5f7a7f83fce9d196f8",
|
|
454
|
+
"key": "boolean_value_false",
|
|
455
|
+
"label": "Boolean false value color",
|
|
456
|
+
"link_type": "key",
|
|
457
|
+
"trigger": []
|
|
449
458
|
}
|
|
450
459
|
],
|
|
451
460
|
[
|